1 | svoid test_subList_sanity() {
|
2 | L l = ll("a", "b");
|
3 | assertEquals(ll("a"), subList(l, 0, 1));
|
4 | assertEquals(ll("a"), subList(l, -1, 1));
|
5 | assertEquals(ll("b"), subList(l, 1));
|
6 | assertEquals(ll(), subList(l, 3)); |
7 | assertEquals(ll(), subList(l, 1, -1)); |
8 | |
9 | subList(l, 1, 2).clear(); |
10 | assertEqualsVerbose(ll("a"), l);
|
11 | } |
Began life as a copy of #1021958
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1021959 |
| Snippet name: | test_subList_sanity |
| Eternal ID of this version: | #1021959/3 |
| Text MD5: | 9f0b66381e6e620c6cc13464d88534d9 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-07-24 03:01:42 |
| Source code size: | 334 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 468 / 507 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |