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

6
LINES

< > BotCompany Repo | #1034918 // test_scrambleAndUnscrambleInt (OK)

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

Libraryless. Click here for Pure Java version (5289L/29K).

svoid test_scrambleAndUnscrambleInt() {
  repeat 1000000 {
    int x = randomInt();
    assertEquals(x, unscrambleInt(scrambleInt(x));
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034918
Snippet name: test_scrambleAndUnscrambleInt (OK)
Eternal ID of this version: #1034918/3
Text MD5: 1020fb19c422efc08f0789f47cf3f9f6
Transpilation MD5: dd01b3428f5ba19214c5df7b5c86abad
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-15 13:39:13
Source code size: 145 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 48 / 80
Version history: 2 change(s)
Referenced in: [show references]