mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
adding a test for #454
This commit is contained in:
@@ -48,3 +48,8 @@ ok result is 11
|
|||||||
echo: (x) -> x
|
echo: (x) -> x
|
||||||
result: if true then echo((if false then 'xxx' else 'y') + 'a')
|
result: if true then echo((if false then 'xxx' else 'y') + 'a')
|
||||||
ok result is 'ya'
|
ok result is 'ya'
|
||||||
|
|
||||||
|
|
||||||
|
# Testing inline funcs with inline if-elses.
|
||||||
|
func: -> if 1 < 0.5 then 1 else -1
|
||||||
|
ok func() is -1
|
||||||
|
|||||||
Reference in New Issue
Block a user