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

16
LINES

< > BotCompany Repo | #1015856 // Test FileBasedStringMap (OK)

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

Transpiled version (7897L) is out of date.

1  
!7
2  
3  
cm > DynTestModule {
4  
  void test {
5  
    deleteAllProgramFiles();
6  
    SS map = new FileBasedStringMap(getProgramFile("test"));
7  
    assertEqualsVerbose(0, map.size());
8  
    assertNull(map.get("bla"));
9  
    map.put("bla", "blubb\nblubb");
10  
    assertEqualsVerbose(1, map.size());
11  
    assertEqualsVerbose("blubb\nblubb", map.get("bla"));
12  
    assertEqualsVerbose(ll("bla"), keysList(map));
13  
    map.remove("bla");
14  
    assertEqualsVerbose(0, map.size());
15  
  }
16  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, vpdwwinrgdga

No comments. add comment

Snippet ID: #1015856
Snippet name: Test FileBasedStringMap (OK)
Eternal ID of this version: #1015856/6
Text MD5: c662187b3de0d8899cb94b59ef831fe2
Author: stefan
Category: javax / persistence
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-27 03:46:28
Source code size: 468 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 383 / 550
Version history: 5 change(s)
Referenced in: [show references]