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

13
LINES

< > BotCompany Repo | #1029648 // test_conceptsWithFieldLessThan (indexed & non-indexed, OK)

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

Libraryless. Click here for Pure Java version (13669L/92K).

1  
concept Bla {
2  
  int a, b;
3  
}
4  
5  
svoid test_conceptsWithFieldLessThan() {
6  
  new Concepts cc;
7  
  indexConceptFieldDesc(cc, Bla, "a");
8  
  Bla x = cnew(cc, Bla, a := 3, b := 3);
9  
  for (int i : ll(5, 7))
10  
    cnew(cc, Bla, a := i, b := i);
11  
  assertEqualsVerbose(ll(x), conceptsWithFieldLessThan(cc, Bla, a := 5));
12  
  assertEqualsVerbose(ll(x), conceptsWithFieldLessThan(cc, Bla, b := 5));
13  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029648
Snippet name: test_conceptsWithFieldLessThan (indexed & non-indexed, OK)
Eternal ID of this version: #1029648/3
Text MD5: cc80af2da3b4dd049e94fdd2e6432119
Transpilation MD5: f4191d7fe7951b3e78e182240f6df059
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-04 20:54:07
Source code size: 390 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 107 / 165
Version history: 2 change(s)
Referenced in: [show references]