mirror of https://github.com/kdl-org/kdl.git
fix multiline string tests
This commit is contained in:
parent
ecb34f2cd6
commit
0c5604b462
|
|
@ -1,18 +1,19 @@
|
|||
// This file deliberately contains unusual whitespace
|
||||
// The first two strings are empty
|
||||
// The first three strings are empty, because whitespace-only lines collapse to
|
||||
// just `\n`.
|
||||
node """
|
||||
""" """
|
||||
\
|
||||
|
||||
|
||||
""" """
|
||||
|
||||
|
||||
"""\
|
||||
\ // The next two strings contains only whitespace
|
||||
"""
|
||||
|
||||
|
||||
|
||||
\s
|
||||
""" #"""
|
||||
|
||||
|
||||
|
||||
"""#
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
// This file deliberately contains unusual whitespace
|
||||
// Parsing should fail because not all strings have a matching multiline prefix,
|
||||
// which must be exact, down to the codepoint, _before_ newline normalization.
|
||||
node """
|
||||
""" """
|
||||
\
|
||||
|
||||
""" """
|
||||
|
||||
"""\
|
||||
\ // The next two strings contains only whitespace
|
||||
"""
|
||||
|
||||
|
||||
\s
|
||||
""" #"""
|
||||
|
||||
|
||||
"""#
|
||||
Loading…
Reference in New Issue