1 | svoid test_replaceSublist() { |
2 | // insert shorter list |
3 | |
4 | L l = ll("a", "x", "z"); |
5 | replaceSublist(l, 1, 2, ll("b", "c")); |
6 | assertEqualsVerbose(l, ll("a", "b", "c", "z")); |
7 | |
8 | // insert longer list |
9 | |
10 | l = ll("a", "x", "y", "z"); |
11 | replaceSublist(l, 1, 3, ll("b")); |
12 | assertEqualsVerbose(l, ll("a", "b", "z")); |
13 | |
14 | // insert same-size list |
15 | l = ll("a", "x", "y", "z"); |
16 | replaceSublist(l, 2, 3, ll("x")); |
17 | assertEqualsVerbose(l, ll("a", "x", "x", "z")); |
18 | } |
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: | #1025483 |
Snippet name: | test_replaceSublist (OK) |
Eternal ID of this version: | #1025483/6 |
Text MD5: | 14514709765346f949d2169dbe8cf5ab |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-30 22:16:45 |
Source code size: | 481 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 239 |
Version history: | 5 change(s) |
Referenced in: | [show references] |