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

9
LINES

< > BotCompany Repo | #1025519 // test_IContentsIndexedList

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

Libraryless. Click here for Pure Java version (2186L/14K).

1  
svoid test_IContentsIndexedList(IContentsIndexedList<S> l) {
2  
  l.clear();
3  
  addAll(l, "a", "b", "a", null);
4  
  assertEqualsVerbose(ll(0, 2), intArrayToList(l.indicesOf("a"));
5  
  assertEqualsVerbose(ll(1), intArrayToList(l.indicesOf("b"));
6  
  assertEqualsVerbose(ll(3), intArrayToList(l.indicesOf(null));
7  
  assertEqualsVerbose(ll(), intArrayToList(l.indicesOf("x"));
8  
  l.clear();
9  
}

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: #1025519
Snippet name: test_IContentsIndexedList
Eternal ID of this version: #1025519/2
Text MD5: a0ebf0a77c6c70ae44391652aeaa3900
Transpilation MD5: efd547cd397bc18ac24be99c0a51295f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-01 18:33:34
Source code size: 385 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 217 / 318
Version history: 1 change(s)
Referenced in: [show references]