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_heredocs.coffee

52 lines
403 B
CoffeeScript
Raw Normal View History

2010-01-11 23:53:50 -05:00
a: """
basic heredoc
on two lines
"""
ok a is "basic heredoc\non two lines"
2010-01-11 23:53:50 -05:00
a: '''
a
2010-01-12 00:00:38 -05:00
"b
2010-01-11 23:53:50 -05:00
c
'''
ok a is "a\n \"b\nc"
2010-01-11 23:53:50 -05:00
a: '''one-liner'''
ok a is 'one-liner'
2010-01-11 23:53:50 -05:00
a: """
out
here
"""
ok a is "out\nhere"
a: '''
a
b
c
'''
ok a is " a\n b\nc"
a: '''
a
b c
'''
ok a is "a\n\n\nb c"
a: '''more"than"one"quote'''
ok a is 'more"than"one"quote'