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

14
LINES

< > BotCompany Repo | #1017333 // Test structure/unstructure with non-transient _persistenceInfo (OK, moved to test_structure_nonTransientPersistenceInfo)

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

Download Jar. Libraryless. Click here for Pure Java version (9302L/60K).

1  
!7
2  
3  
set flag structure_debug.
4  
5  
sclass Blubb {
6  
  S a = "aa", b = "bb";
7  
  Map<S, O> _persistenceInfo;
8  
}
9  
10  
p-exp {
11  
  assertEqualsVerbose([[Blubb(_persistenceInfo=hm{"a"=f}, b="bb")]], structure(nu(Blubb, _persistenceInfo := litmap("a", false)));
12  
  assertEqualsVerbose([[Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := null)));
13  
  assertEqualsVerbose([[Blubb(_persistenceInfo=hm{"a"=t}, a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := litmap("a", true))));
14  
}

Author comment

Began life as a copy of #1017332

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017333
Snippet name: Test structure/unstructure with non-transient _persistenceInfo (OK, moved to test_structure_nonTransientPersistenceInfo)
Eternal ID of this version: #1017333/5
Text MD5: 828ab11afce33e95d54a70d1a8ca04e4
Transpilation MD5: 17b4fc19fc422121f93feb597bc95aed
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-18 20:02:24
Source code size: 493 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 310 / 730
Version history: 4 change(s)
Referenced in: [show references]