Sha256: 647d4b56db0689665a630175805ea8dcbd0ad805d5c471d063aa34832c0a38f6

Contents?: true

Size: 1.24 KB

Versions: 10

Compression:

Stored size: 1.24 KB

Contents

a = """
    basic heredoc
    on two lines
    """

ok a is "basic heredoc\non two lines"


a = '''
    a
      "b
    c
    '''

ok a is "a\n  \"b\nc"


a = """
a
 b
  c
"""

ok a is "a\n b\n  c"


a = '''one-liner'''

ok a is 'one-liner'


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'


val = 10

a = """
    basic heredoc #{val}
    on two lines
    """

b = '''
    basic heredoc #{val}
    on two lines
    '''

ok a is "basic heredoc 10\non two lines"
ok b is "basic heredoc \#{val}\non two lines"


a = '''here's an apostrophe'''
ok a is "here's an apostrophe"


# The indentation detector ignores blank lines without trailing whitespace
a = """
    one
    two

    """
ok a is "one\ntwo\n"

eq ''' line 0
  should not be relevant
    to the indent level
''', '
 line 0\n
should not be relevant\n
  to the indent level
'

eq ''' '\\\' ''', " '\\' "
eq """ "\\\" """, ' "\\" '

eq '''  <- keep these spaces ->  ''', '  <- keep these spaces ->  '

eq 'multiline nested "interpolations" work', """multiline #{
  "nested #{(->
    ok yes
    "\"interpolations\""
  )()}"
} work"""

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
spade-packager-0.1.0.1 packages/coffee-script/test/test_heredocs.coffee
spade-packager-0.1.0 packages/coffee-script/test/test_heredocs.coffee
spade-0.0.8.1 packages/coffee-script/test/test_heredocs.coffee
spade-0.0.7 packages/coffee-script/test/test_heredocs.coffee
spade-0.0.6 packages/coffee-script/test/test_heredocs.coffee
spade-0.0.5 packages/coffee-script/test/test_heredocs.coffee
spade-0.0.4 packages/coffee-script/test/test_heredocs.coffee
spade-0.0.3 packages/coffee-script/test/test_heredocs.coffee
spade-0.0.2 packages/coffee-script/test/test_heredocs.coffee
spade-0.0.1 packages/coffee-script/test/test_heredocs.coffee