svoid test_parentConcepts() { new Concepts cc; new Concepts parent; cc.parent = parent; cc.idCounter = 1000; Concept a = cnew(parent, Concept); Concept b = cnew(cc, Concept); assertEqualsVerbose(1L, a.id); assertEqualsVerbose(1001L, b.id); assertEqualsVerbose(2, countConceptsCI(cc, Concept)); assertEqualsVerbose(1, countConceptsCI(parent, Concept)); assertEqualsVerbose(litset(a), asSet(list(parent, Concept))); assertEqualsVerbose(litset(a, b), asSet(list(cc, Concept))); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030888 | 
| Snippet name: | test_parentConcepts (OK) | 
| Eternal ID of this version: | #1030888/6 | 
| Text MD5: | efd60fb6301b7c1b15d22ffbdd2bebe6 | 
| Author: | stefan | 
| Category: | javax / concepts | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-04-06 12:46:26 | 
| Source code size: | 513 bytes / 14 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 355 / 440 | 
| Version history: | 5 change(s) | 
| Referenced in: | [show references] |