Libraryless. Click here for Pure Java version (1808L/12K/41K).
1 | !752 |
2 | |
3 | p { |
4 | new L<Map> l; |
5 | l.add(litmap("a", 1)); |
6 | printStructure(l); |
7 | assertSame(l, filterByField_smart(l, "a", 1)); |
8 | assertEmpty(filterByField_smart(l, "a", 0)); |
9 | l.add(litmap("a", 2)); |
10 | assertCollectionContents(ll(litmap("a", 1)), filterByField_smart(l, "a", 1)); |
11 | assertCollectionContents(ll(litmap("a", 2)), filterByField_smart(l, "a", 2)); |
12 | l.add(litmap("a", 1, "b", 2)); |
13 | assertCollectionContents(ll(litmap("a", 1), litmap("a", 1, "b", 2)), filterByField_smart(l, "a", 1)); |
14 | print("OK"); |
15 | } |
Began life as a copy of #1002460
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011434 |
Snippet name: | Test filterByField_smart [OK] |
Eternal ID of this version: | #1011434/4 |
Text MD5: | e0d2d47085bfd1d1ab0ec90614b6c672 |
Transpilation MD5: | f27eef20ea5b79709e211277707eb91a |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-29 02:38:30 |
Source code size: | 520 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 481 / 565 |
Version history: | 3 change(s) |
Referenced in: | [show references] |