Libraryless. Click here for Pure Java version (2186L/14K).
svoid test_IContentsIndexedList(IContentsIndexedList<S> l) { l.clear(); addAll(l, "a", "b", "a", null); assertEqualsVerbose(ll(0, 2), intArrayToList(l.indicesOf("a")); assertEqualsVerbose(ll(1), intArrayToList(l.indicesOf("b")); assertEqualsVerbose(ll(3), intArrayToList(l.indicesOf(null)); assertEqualsVerbose(ll(), intArrayToList(l.indicesOf("x")); l.clear(); }
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: | 444 / 595 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |