| Test ListModel API. |
| Adding 0, 1, 2 |
| Replaced [] at index 0 with [0, 1, 2] |
| Resulting list: [0, 1, 2] |
| |
| Replacing 0 with 5, 6, 7 |
| Replaced [0] at index 0 with [5, 6, 7] |
| Resulting list: [5, 6, 7, 1, 2] |
| |
| Pushing 10 |
| Replaced [] at index 5 with [10] |
| Resulting list: [5, 6, 7, 1, 2, 10] |
| |
| Popping 10 |
| Replaced [10] at index 5 with [] |
| Resulting list: [5, 6, 7, 1, 2] |
| |
| Removing 2 |
| Replaced [2] at index 4 with [] |
| Resulting list: [5, 6, 7, 1] |
| |
| Inserting 8 |
| Replaced [] at index 1 with [8] |
| Resulting list: [5, 8, 6, 7, 1] |
| |
| Replacing with 0...20 |
| Replaced [5, 8, 6, 7, 1] at index 0 with [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] |
| Resulting list: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] |
| |
| Replacing 7 with 27 |
| Replaced [7] at index 7 with [27] |
| Resulting list: [0, 1, 2, 3, 4, 5, 6, 27, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] |
| |
| Replacing 18, 19 with 28, 29 |
| Replaced [18, 19] at index 18 with [28, 29] |
| Resulting list: [0, 1, 2, 3, 4, 5, 6, 27, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 28, 29] |
| |
| Replacing 1, 2, 3 with [31-43] |
| Replaced [1, 2, 3] at index 1 with [31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43] |
| Resulting list: [0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 4, 5, 6, 27, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 28, 29] |
| |
| Replacing all but 29 with [] |
| Replaced [0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 4, 5, 6, 27, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 28] at index 0 with [] |
| Resulting list: [29] |
| |
| |