Transpiled version (6843L) is out of date.
1 | sclass Test_CompactLongSet > TestUnorderedSet { |
2 | long minValue = 0; |
3 | |
4 | S moreInfo(Set b) { ret n2(((CompactLongSet) b).objects.length); } |
5 | |
6 | O makeEntry() { ret minValue+randomLong(valueRange); } |
7 | O randomNonContainedEntry() { ret minValue+randomLong(valueRange+1, valueRange*2); } |
8 | |
9 | Set makeSet() { ret new CompactLongSet; } |
10 | } |
11 | |
12 | svoid test_CompactLongSet() { |
13 | new Test_CompactLongSet().run(); |
14 | |
15 | // include Long.MIN_VALUE because it's a sentinel |
16 | new Test_CompactLongSet test; |
17 | test.minValue = Long.MIN_VALUE; |
18 | test.run(); |
19 | } |
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: | 155 / 313 |
Version history: | 7 change(s) |
Referenced in: | [show references] |