Add List.extend and List.to_list, plus some more tests

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-09-30 19:53:31 -07:00
parent a370d3a56f
commit a7d7d8e564
4 changed files with 110 additions and 4 deletions

25
tests/list.npp.expect Normal file
View File

@@ -0,0 +1,25 @@
to_str
[]
[1, 2, 3]
['a', 'b', 'c']
['a\nb\nc']
push and pop
[1234, 56]
56
[1234]
[1234, 99, 100]
[1234, '99', '100']
len
3
2
1
0
extend
[1, 2, 3]
[1, 2, 3, 1, 2, 3]
[1, 2, 3, 1, 2, 3, 'a', 's', 'd', 'f']
constructor
['a', 's', 'd', 'f']
[1, 2, 3]
[1, 2, 3]
[1, 2]