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

9
LINES

< > BotCompany Repo | #1024862 // test_restructure_MRUCache

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

Libraryless. Click here for Pure Java version (5053L/32K).

svoid test_restructure_MRUCache() {
  new MRUCache o;
  o.maxSize = 5;
  o.put("a", true);
  print(structure(o));
  MRUCache o2 = cast restructure(o);
  assertEqualsVerbose(ll(pair("a", true)), mapToPairs(o2));
  assertEqualsVerbose(5, o2.maxSize);
}

Author comment

Began life as a copy of #1002704

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: #1024862
Snippet name: test_restructure_MRUCache
Eternal ID of this version: #1024862/3
Text MD5: ea6bccb450d1bc6e64946ad691c0593e
Transpilation MD5: 5ab869aa8adab489d89f9e35f9f45660
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-27 18:47:35
Source code size: 258 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 218
Version history: 2 change(s)
Referenced in: [show references]