a little further with the tests

This commit is contained in:
Jeremy Ashkenas
2010-11-11 22:02:53 -05:00
parent ce4bf4aca5
commit 4d8434d1b6
2 changed files with 2 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ ok expr(2, 4, 8).join(' ') is '4 16 64'
# Fast object comprehensions over all properties, including prototypal ones.
class Cat
constructor: -> @name = 'Whiskers'
-> @name = 'Whiskers'
breed: 'tabby'
hair: 'cream'

View File

@@ -81,7 +81,7 @@ eq ident(non?.existent().method()), undefined, 'soaks inner values'
# Soaks constructor invocations.
a = 0
class Foo
constructor: -> a += 1
-> a += 1
bar: "bat"
ok (new Foo())?.bar is 'bat'