Libraryless. Click here for Pure Java version (3439L/22K).
svoid test_internByteArrayField() { class A { byte[] blubb; *(S s) { blubb = toUtf8(s); } } L<A> l = repF(2, () -> new A("bla")); internByteArrayField blubb(l); for (A a : l) assertEqualsVerbose("bla", fromUtf8(a.blubb)); assertSameVerbose(first(l).blubb, second(l).blubb); }
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: | 176 / 272 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1024845 - test_HashedByteArray |