mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-15 01:38:13 -05:00
just finishing up ranges_slices_and_splices.coffee
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user