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

14
LINES

< > BotCompany Repo | #1024470 // Test structure/unstructure with Short

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

Download Jar. Libraryless. Click here for Pure Java version (9011L/64K).

1  
!7
2  
3  
p-exp {
4  
  // also test token refs (which were buggy at some point!)
5  
  S id1 = aGlobalID();
6  
  L l = ll("test", (short) 1, "bla", (short) -2, "test", (short) 3, "bla");
7  
  new structure_Data data;
8  
  data.shareStringsLongerThan = 0;
9  
  S s = structure(l, data);
10  
  print(s);
11  
  O o = unstruct(s);
12  
  print(o);
13  
  assertEqualsVerbose(l, o);
14  
}

Author comment

Began life as a copy of #1018731

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: #1024470
Snippet name: Test structure/unstructure with Short
Eternal ID of this version: #1024470/4
Text MD5: 6865bda3a7ba324d5af2aee52af59c61
Transpilation MD5: 10f65b3ef07fd3827f2d627d4f58a639
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-13 13:47:27
Source code size: 349 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 118 / 450
Version history: 3 change(s)
Referenced in: [show references]