adding a test for Issue #550.

This commit is contained in:
Jeremy Ashkenas 2010-07-28 20:43:39 -04:00
parent 5b848fbc47
commit 58a5d93214
1 changed files with 9 additions and 0 deletions

View File

@ -211,3 +211,12 @@ meth 'apple', b: 1, a: 13, ->
'orange'
ok a is '13 apple orange'
# Ensure that empty functions don't return mistaken values.
obj =
func: (@param, @rest...) ->
ok obj.func(101, 102, 103, 104) is undefined
ok obj.param is 101
ok obj.rest.join(' ') is '102 103 104'