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

13
LINES

< > BotCompany Repo | #1005047 // Test structure/unstructure with BitSet

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

Libraryless. Click here for Pure Java version (1840L/12K/41K).

!752

p {
  new BitSet bs;
  bs.set(1);
  bs.set(100);
  S s = structure(bs);
  print(s);
  BitSet bs2 = cast unstructure(s);
  assertEquals(bs, bs2);
  assertEquals(new BitSet, restructure(new BitSet));
  print("ok");
}

Author comment

Began life as a copy of #1004990

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005047
Snippet name: Test structure/unstructure with BitSet
Eternal ID of this version: #1005047/1
Text MD5: 5b7ec4a79bf98637c840cc635f59b31e
Transpilation MD5: f2942307b701703ee13921db1de88393
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-03 20:06:21
Source code size: 232 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 494 / 532
Referenced in: [show references]