1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/test/test_comments.coffee

57 lines
525 B
CoffeeScript
Raw Normal View History

2010-01-05 23:15:32 -05:00
# comment
func: ->
2010-01-05 23:15:32 -05:00
# comment
false
false # comment
false
# comment
true
2010-01-05 23:15:32 -05:00
2010-01-10 17:36:06 -05:00
switch 'string'
# comment
when false then something()
# comment
when null
something_else()
->
code()
# comment
ok func()
func
func
# Line3
obj: {
# comment
# comment
# comment
one: 1
# comment
two: 2
# comment
}
result: if true # comment
false
ok not result
result: if false
false
else # comment
45
ok result is 45
test:
'test ' +
'test ' + # comment
'test'
ok test is 'test test test'