mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-15 18:14:55 -05:00
added/fixed/tweaked a few tests and merged test_compound_assignment into test_assignment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user