Libraryless. Click here for Pure Java version (5053L/32K).
1 | svoid test_restructure_MRUCache() {
|
2 | new MRUCache o; |
3 | o.maxSize = 5; |
4 | o.put("a", true);
|
5 | print(structure(o)); |
6 | MRUCache o2 = cast restructure(o); |
7 | assertEqualsVerbose(ll(pair("a", true)), mapToPairs(o2));
|
8 | assertEqualsVerbose(5, o2.maxSize); |
9 | } |
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: | 449 / 605 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |