Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1035208 // testWeightlessShuffledIteratorWithSeed

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (8440L/47K).

svoid testWeightlessShuffledIteratorWithSeed() {
  var l = virtualList(26, _i -> charPlus('a', _i));
  S original = join(l);
  for (int seed : countTo(26)) {
    S shuffled = print(join(WeightlessShuffledIteratorWithSeed(l, seed)));
    assertEquals(sortedString(shuffled), original);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035208
Snippet name: testWeightlessShuffledIteratorWithSeed
Eternal ID of this version: #1035208/2
Text MD5: da27a067784517b8e8ad87d1c1be34a7
Transpilation MD5: 7071b855a55e95b5b7c068489c6f93f5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-15 04:48:01
Source code size: 297 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 156 / 217
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)