mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
tweaking the previous commit's test.
This commit is contained in:
@@ -255,8 +255,11 @@ eq '\\`', `
|
|||||||
obj =
|
obj =
|
||||||
one: 1
|
one: 1
|
||||||
two: 2
|
two: 2
|
||||||
func: -> {@one, @two}
|
object: -> {@one, @two}
|
||||||
|
list: -> [@one, @two]
|
||||||
|
|
||||||
result = obj.func()
|
|
||||||
ok result.one is 1
|
result = obj.object()
|
||||||
ok result.two is 2
|
eq result.one, 1
|
||||||
|
eq result.two, 2
|
||||||
|
eq result.two, obj.list()[1]
|
||||||
Reference in New Issue
Block a user