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

11
LINES

< > BotCompany Repo | #1024861 // test_MRUAndAllTimeTop (OK)

JavaX fragment (include)

1  
svoid test_MRUAndAllTimeTop() {
2  
  new MRUAndAllTimeTop m;
3  
  m.add(1);
4  
  m.add(1);
5  
  m.add(5);
6  
  assertEqualsVerbose(ll(5, 1), asList(m.mixedIterator()));
7  
  m.add(2);
8  
  assertEqualsVerbose(ll(2, 1, 5), asList(m.mixedIterator()));
9  
  m.add(1);
10  
  assertEqualsVerbose(ll(1, 2, 5), asList(m.mixedIterator()));
11  
}

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: #1024861
Snippet name: test_MRUAndAllTimeTop (OK)
Eternal ID of this version: #1024861/2
Text MD5: 73a8ce9e6bcf8706483328732156fbf7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-27 17:27:31
Source code size: 315 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 223
Version history: 1 change(s)
Referenced in: [show references]