just finishing up ranges_slices_and_splices.coffee

This commit is contained in:
Michael Ficarra 2010-12-22 01:39:58 -05:00
parent 47fe5c201c
commit a907811b22
1 changed files with 4 additions and 0 deletions

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