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).

!7

set flag structure_debug.

sclass Blubb {
  S a = "aa", b = "bb";
  Map<S, O> _persistenceInfo;
}

p-exp {
  assertEqualsVerbose([[Blubb(_persistenceInfo=hm{"a"=f}, b="bb")]], structure(nu(Blubb, _persistenceInfo := litmap("a", false)));
  assertEqualsVerbose([[Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := null)));
  assertEqualsVerbose([[Blubb(_persistenceInfo=hm{"a"=t}, a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := litmap("a", true))));
}

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: 411 / 1012
Version history: 4 change(s)
Referenced in: [show references]