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

14
LINES

< > BotCompany Repo | #1031525 // test_structure_nonTransientPersistenceInfo (OK)

JavaX fragment (include)

scope test_structure_nonTransientPersistenceInfo

set flag structure_debug.

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

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

Author comment

Began life as a copy of #1017333

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031525
Snippet name: test_structure_nonTransientPersistenceInfo (OK)
Eternal ID of this version: #1031525/3
Text MD5: 3d339357a4a287100190da701aaac8e8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-18 20:02:09
Source code size: 714 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 187
Version history: 2 change(s)
Referenced in: [show references]