mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
a little further with the tests
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user