Transpiled version (6843L) is out of date.
sclass Test_CompactLongSet > TestUnorderedSet { long minValue = 0; S moreInfo(Set b) { ret n2(((CompactLongSet) b).objects.length); } O makeEntry() { ret minValue+randomLong(valueRange); } O randomNonContainedEntry() { ret minValue+randomLong(valueRange+1, valueRange*2); } Set makeSet() { ret new CompactLongSet; } } svoid test_CompactLongSet() { new Test_CompactLongSet().run(); // include Long.MIN_VALUE because it's a sentinel new Test_CompactLongSet test; test.minValue = Long.MIN_VALUE; test.run(); }
Began life as a copy of #1032013
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033828 |
Snippet name: | test_CompactLongSet [OK] |
Eternal ID of this version: | #1033828/8 |
Text MD5: | 535711d0f7a4febb8cd91ffecf5ee731 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-14 19:52:13 |
Source code size: | 555 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 156 / 313 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |