This commit is contained in:
Gerald Lewis 2011-08-10 22:00:32 -04:00
parent 29a44b84d5
commit ab0b36a53f
1 changed files with 11 additions and 0 deletions

View File

@ -231,3 +231,14 @@ test "chained operations should evaluate each value only once", ->
test "#891: incorrect inversion of chained comparisons", ->
ok (true unless 0 > 1 > 2)
ok (true unless (NaN = 0/0) < 0/0 < NaN)
test "#1234: Applying a splat to :: applies the splat to the wrong object", ->
nonce = {}
class A
b: (arr) ->
eq this.toString(), nonce
toString: -> nonce
c = [0]
A::b c...