Libraryless. Click here for Pure Java version (3129L/20K).
svoid test_CompactTreeSet() { LS list = repF(1000, () -> randomID(3)); Set<S> set = asTreeSet(list); CompactTreeSet<S> cset = new(set); print(set); print(cset); assertEquals(asList(set), asList(cset)); assertEqualsVerbose(l(set), l(cset)); for (S a : shuffledIterator(list)) { set.remove(a); cset.remove(a); assertEquals(asList(set), asList(cset)); assertEqualsVerbose(l(set), l(cset)); } }
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: | #1029167 |
Snippet name: | test_CompactTreeSet [OK] |
Eternal ID of this version: | #1029167/1 |
Text MD5: | a9f41dbc4797f8b3cb86872503054bf7 |
Transpilation MD5: | 305765092484e49ea1fa16bc729eaadd |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-23 15:04:26 |
Source code size: | 442 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 200 / 283 |
Referenced in: | [show references] |