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.

!7

cm > DynTestModule {
  void test {
    deleteAllProgramFiles();
    SS map = new FileBasedStringMap(getProgramFile("test"));
    assertEqualsVerbose(0, map.size());
    assertNull(map.get("bla"));
    map.put("bla", "blubb\nblubb");
    assertEqualsVerbose(1, map.size());
    assertEqualsVerbose("blubb\nblubb", map.get("bla"));
    assertEqualsVerbose(ll("bla"), keysList(map));
    map.remove("bla");
    assertEqualsVerbose(0, map.size());
  }
}

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