This commit is contained in:
Jeremy Ashkenas
2010-12-23 08:16:42 -08:00

View File

@@ -159,3 +159,7 @@ test "splicing with expressions as endpoints", ->
ary = [0..9]
ary[ a+1 .. 2*b+1 ] = [4]
arrayEq [0, 1, 4, 8, 9], ary
ary = [0..9]
ary[a+1...2*b+1] = [4]
arrayEq [0, 1, 4, 7, 8, 9], ary