mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
18 lines
309 B
CoffeeScript
18 lines
309 B
CoffeeScript
# CoffeeScript's operations should be chainable, like Python's.
|
|
|
|
ok 500 > 50 > 5 > -5
|
|
|
|
ok true is not false is true is not false
|
|
|
|
ok 10 < 20 > 10
|
|
|
|
ok 50 > 10 > 5 is parseInt('5', 10)
|
|
|
|
|
|
# Make sure that each argument is only evaluated once, even if used
|
|
# more than once.
|
|
|
|
i: 0
|
|
func: -> i++
|
|
|
|
ok 1 > func() < 1
|