converted the tests to use optional parentheses -- lot's of little subtleties to work out

This commit is contained in:
Jeremy Ashkenas
2010-01-24 23:40:45 -05:00
parent 70e3a6ef2f
commit a5d39efdd2
25 changed files with 106 additions and 101 deletions

View File

@@ -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