mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
adding a couple of interchangeable tests
This commit is contained in:
parent
80230414a2
commit
0da61ec47e
1 changed files with 10 additions and 0 deletions
|
@ -18,3 +18,13 @@ i: 0
|
|||
func: -> i++
|
||||
|
||||
ok 1 > func() < 1
|
||||
|
||||
|
||||
# `:` and `=` should be interchangeable, as should be `==` and `is`.
|
||||
|
||||
a: 1
|
||||
b: 1
|
||||
|
||||
ok a is 1 and b is 1
|
||||
ok a == b
|
||||
ok a is b
|
||||
|
|
Loading…
Add table
Reference in a new issue