mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
converted the tests to use optional parentheses -- lot's of little subtleties to work out
This commit is contained in:
10
test/fixtures/execution/test_operations.coffee
vendored
10
test/fixtures/execution/test_operations.coffee
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user