mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
enhanced tests for #1099 fix
This commit is contained in:
parent
9d72208d9e
commit
f03bcc24ad
1 changed files with 2 additions and 1 deletions
|
@ -185,7 +185,8 @@ test "#768: `in` should preserve evaluation order", ->
|
||||||
eq 3, share
|
eq 3, share
|
||||||
|
|
||||||
test "#1099: empty array after `in` should compile to `false`", ->
|
test "#1099: empty array after `in` should compile to `false`", ->
|
||||||
eq 5 in [], false
|
eq 1, [5 in []].length
|
||||||
|
eq false, do -> return 0 in []
|
||||||
|
|
||||||
|
|
||||||
# Chained Comparison
|
# Chained Comparison
|
||||||
|
|
Loading…
Add table
Reference in a new issue