Add List.extend and List.to_list, plus some more tests
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
25
tests/list.npp.expect
Normal file
25
tests/list.npp.expect
Normal 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]
|
||||
Reference in New Issue
Block a user