mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
better test for sans-condition switch...
This commit is contained in:
parent
cd6ee373ff
commit
9d09bee6fb
1 changed files with 3 additions and 3 deletions
|
@ -66,8 +66,8 @@ ok result
|
||||||
|
|
||||||
# Should be able to handle switches sans-condition.
|
# Should be able to handle switches sans-condition.
|
||||||
result: switch
|
result: switch
|
||||||
when yes and no then 1
|
when null then 1
|
||||||
when yes or no then 2
|
when 'truthful string' then 2
|
||||||
else 3
|
else 3
|
||||||
|
|
||||||
ok result is 2
|
ok result is 2
|
||||||
|
|
Loading…
Add table
Reference in a new issue