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

17
LINES

< > BotCompany Repo | #1030947 // test_unstructureMissingConcept

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

Transpiled version (15379L) is out of date.

1  
scope test_unstructureMissingConcept.
2  
3  
concept Blu { Blu ref; }
4  
5  
svoid test_unstructureMissingConcept() {
6  
  Blu b = unlisted(Blu);
7  
  b.ref = b;
8  
  new structure_Data data;
9  
  data.storeBaseClasses = true; // try with this new feature
10  
  S struct = structure(b, data);
11  
  print(+struct);
12  
  O o = unstructure(struct, true);
13  
  assertEqualsVerbose(Concept.class, _getClass(o));
14  
  assertSameVerbose(o, cget(o, "ref"));
15  
}
16  
17  
end scope

Author comment

Began life as a copy of #1030942

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030947
Snippet name: test_unstructureMissingConcept
Eternal ID of this version: #1030947/4
Text MD5: ec354a7f76d8ccb100428b0438865fa0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-14 16:39:17
Source code size: 438 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 260
Version history: 3 change(s)
Referenced in: [show references]