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

13
LINES

< > BotCompany Repo | #1024844 // test_internByteArrayField

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

Libraryless. Click here for Pure Java version (3439L/22K).

1  
svoid test_internByteArrayField() {
2  
  class A {
3  
    byte[] blubb;
4  
    
5  
    *(S s) { blubb = toUtf8(s); }
6  
  }
7  
  
8  
  L<A> l = repF(2, () -> new A("bla"));
9  
  internByteArrayField blubb(l);
10  
  
11  
  for (A a : l) assertEqualsVerbose("bla", fromUtf8(a.blubb));
12  
  assertSameVerbose(first(l).blubb, second(l).blubb);
13  
}

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: #1024844
Snippet name: test_internByteArrayField
Eternal ID of this version: #1024844/1
Text MD5: fb1fb8bf65f41861146c15845dd1433c
Transpilation MD5: 69728deda96b15c6a7c40ec95cd77e41
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-26 21:50:11
Source code size: 318 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 175 / 272
Referenced in: [show references]