Libraryless. Click here for Pure Java version (2782L/17K).
1 | svoid test_globalID_ordering() { |
2 | Random random = predictableRandom(); |
3 | L<GlobalID> l = repF(10, () -> aGlobalIDObj(random)); |
4 | for (Pair<GlobalID> p : outerProductPairs(l)) |
5 | assertEqualsVerbose(p.a + "/" + p.b, sign(cmp(p.a, p.b)), sign(cmp(str(p.a), str(p.b)))); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1026158 |
Snippet name: | test_globalID_ordering (OK) |
Eternal ID of this version: | #1026158/3 |
Text MD5: | 7c93ce2d3f0c91519dc6fb1da8a2bf2f |
Transpilation MD5: | 5d28bad585003a82e63b2306a948da12 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-11-27 13:47:33 |
Source code size: | 276 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 237 / 354 |
Version history: | 2 change(s) |
Referenced in: | [show references] |