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

20
LINES

< > BotCompany Repo | #1012269 - Test GlobalID (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (2398L/16K).

!7

set flag GlobalID_debug.

p {
  S a = aGlobalID(), b = aGlobalID();
  print(a + " / " + b);
  GlobalID idA = GlobalID(a), idB = GlobalID(b);
  print(sfu(idA) + " / " + sfu(idB));
  print(idA + " / " + idB);
  assertEquals(a, str(idA));
  assertEquals(b, str(idB));
  assertEquals(idA, GlobalID(a));
  assertEquals(idB, GlobalID(b));
  assertFalse(idA.equals(idB));
  print("Size comparison:");
  print("  GlobalID=" + unsafe_sizeOf(GlobalID));
  print("  String=" + guessStringSize(l(a));
  print("OK");
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1012269
Snippet name: Test GlobalID (OK)
Eternal ID of this version: #1012269/9
Text MD5: 226ee4f0f4a48e2154fbb87da7dcf51e
Transpilation MD5: 4e858ac11212e8569454e8c43a1568f0
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-28 23:27:12
Source code size: 528 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 191 / 266
Version history: 8 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1012269 & http://1012269.tinybrain.de