Add a couple of unit tests for insert_at and erase_at

This commit is contained in:
Jonathan Turner
2009-07-09 02:56:31 +00:00
parent 9c8e4dd535
commit 6aaee43205
4 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
var x = [1, 2, 3]
x.erase_at(1)
print(x)

View File

@@ -0,0 +1 @@
[1, 3]

View File

@@ -0,0 +1,3 @@
var x = [1, 2, 3]
x.insert_at(1, 6)
print(x)

View File

@@ -0,0 +1 @@
[1, 6, 2, 3]