jashkenas--coffeescript/test/fixtures/execution/test_heredocs.coffee

28 lines
255 B
CoffeeScript
Raw Normal View History

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