mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 02:51:25 -05:00
removed ruby tests, and started the process of converting the CoffeeScript tests over to use Node's assert() module
This commit is contained in:
46
test/test_heredocs.coffee
Normal file
46
test/test_heredocs.coffee
Normal file
@@ -0,0 +1,46 @@
|
||||
a: """
|
||||
basic heredoc
|
||||
on two lines
|
||||
"""
|
||||
|
||||
puts a is "basic heredoc\non two lines"
|
||||
|
||||
|
||||
a: '''
|
||||
a
|
||||
"b
|
||||
c
|
||||
'''
|
||||
|
||||
puts a is "a\n \"b\nc"
|
||||
|
||||
|
||||
a: '''one-liner'''
|
||||
|
||||
puts a is 'one-liner'
|
||||
|
||||
|
||||
a: """
|
||||
out
|
||||
here
|
||||
"""
|
||||
|
||||
puts a is "out\nhere"
|
||||
|
||||
|
||||
a: '''
|
||||
a
|
||||
b
|
||||
c
|
||||
'''
|
||||
|
||||
puts a is " a\n b\nc"
|
||||
|
||||
a: '''
|
||||
a
|
||||
|
||||
|
||||
b c
|
||||
'''
|
||||
|
||||
puts a is "a\n\n\nb c"
|
||||
Reference in New Issue
Block a user