Port "retro" to use the new built in object typing, add unit test for retro'ing a retro
This commit is contained in:
7
unittests/retroretro.chai
Normal file
7
unittests/retroretro.chai
Normal file
@@ -0,0 +1,7 @@
|
||||
var x = [1, 2, 3, 4]
|
||||
var r = retro(range(x))
|
||||
r.pop_back()
|
||||
var r2 = retro(r)
|
||||
r2.pop_front()
|
||||
print(r.back())
|
||||
print(r2.front())
|
2
unittests/retroretro.txt
Normal file
2
unittests/retroretro.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
2
|
||||
3
|
Reference in New Issue
Block a user