Port "retro" to use the new built in object typing, add unit test for retro'ing a retro

This commit is contained in:
Jason Turner
2009-09-20 03:50:25 +00:00
parent 991753a492
commit 593c6c68ee
3 changed files with 18 additions and 9 deletions

View 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
View File

@@ -0,0 +1,2 @@
2
3