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 | } |
Began life as a copy of #1028997
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, 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: | 427 / 477 |
| Referenced in: | [show references] |