adding another statement/expression/return test.

This commit is contained in:
Jeremy Ashkenas
2010-06-13 01:19:31 -04:00
parent 5612a59b30
commit 3bcca99cba

View File

@@ -21,4 +21,13 @@ func: ->
else
"word"
ok func() is 'word'
ok func() is 'word'
# And with switches.
func: ->
switch 'a'
when 'a' then 42
else return 23
ok func() is 42