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

24
LINES

< > BotCompany Repo | #1028355 // Test conceptsWithFieldGreaterThan (OK)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (3155L/16K).

1  
!7
2  
3  
concept Bla {
4  
  int i;
5  
  
6  
  *(int *i) {}
7  
}
8  
9  
cprint {
10  
  start-thread {
11  
    testIt();
12  
    indexConceptFieldsOrdered(Bla, 'i);
13  
    print("No more table scans should appear from here on");
14  
    testIt();
15  
  }
16  
  
17  
  void testIt { 
18  
    L<Int> l = ll(1, 3, 5, 10);
19  
    for (int i : l) new Bla(i);
20  
    set conceptsWithFieldGreaterThan_verbose;
21  
    for idx over l:
22  
      assertEqualsVerbose(subList(l, idx+1), collectSorted i(conceptsWithFieldGreaterThan Bla('i, l.get(idx))));
23  
  }
24  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028355
Snippet name: Test conceptsWithFieldGreaterThan (OK)
Eternal ID of this version: #1028355/10
Text MD5: 0ddc4b76726ea347f9970ef44e32afaa
Transpilation MD5: 42b7b614e471da4568b40875427be2c2
Author: stefan
Category: javax / concepts
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-13 12:32:08
Source code size: 498 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 293
Version history: 9 change(s)
Referenced in: [show references]