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.

scope test_unstructureMissingConcept.

concept Blu { Blu ref; }

svoid test_unstructureMissingConcept() {
  Blu b = unlisted(Blu);
  b.ref = b;
  new structure_Data data;
  data.storeBaseClasses = true; // try with this new feature
  S struct = structure(b, data);
  print(+struct);
  O o = unstructure(struct, true);
  assertEqualsVerbose(Concept.class, _getClass(o));
  assertSameVerbose(o, cget(o, "ref"));
}

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: 106 / 174
Version history: 3 change(s)
Referenced in: [show references]