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).

concept Bla {
  int a, b;
}

svoid test_conceptsWithFieldLessThan() {
  new Concepts cc;
  indexConceptFieldDesc(cc, Bla, "a");
  Bla x = cnew(cc, Bla, a := 3, b := 3);
  for (int i : ll(5, 7))
    cnew(cc, Bla, a := i, b := i);
  assertEqualsVerbose(ll(x), conceptsWithFieldLessThan(cc, Bla, a := 5));
  assertEqualsVerbose(ll(x), conceptsWithFieldLessThan(cc, Bla, b := 5));
}

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: 219 / 307
Version history: 2 change(s)
Referenced in: [show references]