tests are now passing on symbology

This commit is contained in:
Jeremy Ashkenas
2010-07-24 22:23:37 -07:00
parent 492ee57b8f
commit 88847df70b
42 changed files with 514 additions and 522 deletions

View File

@@ -1,11 +1,11 @@
# Expression conversion under explicit returns.
first: ->
first = ->
return 'do' for x in [1,2,3]
second: ->
second = ->
return ['re' for x in [1,2,3]]
third: ->
third = ->
return ('mi' for x in [1,2,3])
ok first().join(' ') is 'do do do'
@@ -14,7 +14,7 @@ ok third().join(' ') is 'mi mi mi'
# Testing returns with multiple branches.
func: ->
func = ->
if false
for a in b
return c if d
@@ -25,7 +25,7 @@ ok func() is 'word'
# And with switches.
func: ->
func = ->
switch 'a'
when 'a' then 42
else return 23