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

14
LINES

< > BotCompany Repo | #1030888 // test_parentConcepts (OK)

JavaX fragment (include)

1  
svoid test_parentConcepts() {
2  
  new Concepts cc;
3  
  new Concepts parent;
4  
  cc.parent = parent;
5  
  cc.idCounter = 1000;
6  
  Concept a = cnew(parent, Concept);
7  
  Concept b = cnew(cc, Concept);
8  
  assertEqualsVerbose(1L, a.id);
9  
  assertEqualsVerbose(1001L, b.id);
10  
  assertEqualsVerbose(2, countConceptsCI(cc, Concept));
11  
  assertEqualsVerbose(1, countConceptsCI(parent, Concept));
12  
  assertEqualsVerbose(litset(a), asSet(list(parent, Concept)));
13  
  assertEqualsVerbose(litset(a, b), asSet(list(cc, Concept)));
14  
}

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: 162 / 234
Version history: 5 change(s)
Referenced in: [show references]