mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
converted the tests to use optional parentheses -- lot's of little subtleties to work out
This commit is contained in:
11
test/fixtures/execution/test_switch.coffee
vendored
11
test/fixtures/execution/test_switch.coffee
vendored
@@ -14,8 +14,7 @@ result: switch num
|
||||
when 11 then false
|
||||
else false
|
||||
|
||||
print(result)
|
||||
|
||||
print result
|
||||
|
||||
func: num =>
|
||||
switch num
|
||||
@@ -25,7 +24,7 @@ func: num =>
|
||||
false
|
||||
else false
|
||||
|
||||
print(func(2))
|
||||
print(func(6))
|
||||
print(!func(3))
|
||||
print(!func(8))
|
||||
print func(2)
|
||||
print func(6)
|
||||
print !func(3)
|
||||
print !func(8)
|
||||
|
||||
Reference in New Issue
Block a user