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,12 +1,12 @@
# CoffeeScript's operations should be chainable, like Python's.
print(500 > 50 > 5 > -5)
print 500 > 50 > 5 > -5
print(true is not false is true is not false)
print true is not false is true is not false
print(10 < 20 > 10)
print 10 < 20 > 10
print(50 > 10 > 5 is parseInt('5', 10))
print 50 > 10 > 5 is parseInt('5', 10)
# Make sure that each argument is only evaluated once, even if used
@@ -15,4 +15,4 @@ print(50 > 10 > 5 is parseInt('5', 10))
i: 0
func: => i++
print(1 > func() < 1)
print 1 > func() < 1