Libraryless. Click here for Pure Java version (2861L/18K).
1 | svoid test_intersectMultipleSortedCollectionsI() { |
2 | Random random = repeatableRandomizer(); |
3 | repeat 1000 { |
4 | LL<Int> l = repF(3, () -> asList(randomSortedIntArray(10, random))); |
5 | L<Int> result = sorted(foldl_noSeed intersectSets(l)); |
6 | print(l); |
7 | assertEqualsVerbose(result, |
8 | asList(intersectMultipleSortedCollectionsI(l))); |
9 | } |
10 | } |
Began life as a copy of #1029033
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: | #1029047 |
Snippet name: | test_intersectMultipleSortedCollectionsI (OK) |
Eternal ID of this version: | #1029047/4 |
Text MD5: | cd6b7c7cf05a89b494ed719f30508106 |
Transpilation MD5: | 2b5e2d1ff19620208dcf4c772498c869 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-17 17:13:43 |
Source code size: | 356 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 185 / 289 |
Version history: | 3 change(s) |
Referenced in: | [show references] |