added/fixed/tweaked a few tests and merged test_compound_assignment into test_assignment

This commit is contained in:
satyr
2010-10-24 04:03:07 +09:00
10 changed files with 815 additions and 458 deletions

View File

@@ -103,7 +103,7 @@ ok age is 26
ok first is "Prince"
ok second is "Bowie"
# Pattern matching within for..loops
# Pattern matching within for..loops.
persons = {
George: { name: "Bob" },
@@ -149,9 +149,11 @@ obj =
func: (list, object) ->
[@one, @two] = list
{@a, @b} = object
{@a} = object # must not unroll this
{@a} = object
null
{} = [] = ok yes, 'empty assignment is allowed'
obj.func [1, 2], a: 'a', b: 'b'
eq obj.one, 1