From faf98dacf67523bad3c340e02139910f925b9011 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 18 Feb 2011 07:15:40 -0500 Subject: [PATCH] stricter array splat tests. --- test/array_literals.coffee | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/array_literals.coffee b/test/array_literals.coffee index 1697f10e..5f72f38b 100644 --- a/test/array_literals.coffee +++ b/test/array_literals.coffee @@ -37,12 +37,13 @@ test "array splat expansions with assignments", -> arrayEq [0,1,2,3,4], list test "array splats with nested arrays", -> - a = [1] + nonce = {} + a = [nonce] list = [1, 2, a...] eq list[0], 1 - eq list[2], 1 + eq list[2], nonce - a = [[1]] + a = [[nonce]] list = [1, 2, a...] - ok list[2] instanceof Array + arrayEq list, [1, 2, [nonce]]