mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
converted the tests to use optional parentheses -- lot's of little subtleties to work out
This commit is contained in:
16
test/fixtures/execution/test_splats.coffee
vendored
16
test/fixtures/execution/test_splats.coffee
vendored
@@ -1,9 +1,9 @@
|
||||
func: first, second, rest... =>
|
||||
rest.join(' ')
|
||||
rest.join ' '
|
||||
|
||||
result: func(1, 2, 3, 4, 5)
|
||||
result: func 1, 2, 3, 4, 5
|
||||
|
||||
print(result is "3 4 5")
|
||||
print result is "3 4 5"
|
||||
|
||||
|
||||
gold: silver: bronze: the_field: null
|
||||
@@ -27,9 +27,9 @@ contenders: [
|
||||
"Usain Bolt"
|
||||
]
|
||||
|
||||
medalists("Mighty Mouse", contenders...)
|
||||
medalists "Mighty Mouse", contenders...
|
||||
|
||||
print(gold is "Mighty Mouse")
|
||||
print(silver is "Michael Phelps")
|
||||
print(bronze is "Liu Xiang")
|
||||
print(the_field.length is 8)
|
||||
print gold is "Mighty Mouse"
|
||||
print silver is "Michael Phelps"
|
||||
print bronze is "Liu Xiang"
|
||||
print the_field.length is 8
|
||||
Reference in New Issue
Block a user