Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1029001 - testFullTextSearcherIC

JavaX fragment (include)

1  
svoid testFullTextSearcherIC(SS texts, S query, IF1<S, Iterable<S>> searcher, TimeCollector tc, int repetitions) {
2  
  Cl<S> solution = asSet(keysWhereValueContainsIC(query, texts));
3  
  repeat repetitions {
4  
    long time = nanos();
5  
    Cl<S> result = asCollection(searcher.get(query));
6  
    tc.addNanos(nanos()-time);
7  
    for (S s : setDiff_bothWays(solution, result))
8  
      fail("Searcher " + searcher + " was wrong on " + s);
9  
  }
10  
}

Author comment

Began life as a copy of #1028997

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029001
Snippet name: testFullTextSearcherIC
Eternal ID of this version: #1029001/1
Text MD5: 34d2dc382a04ed83e9d4bf66a56ff82e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-16 18:25:11
Source code size: 438 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 30 / 43
Referenced in: [show references]

Formerly at http://tinybrain.de/1029001 & http://1029001.tinybrain.de