Skip to content

Commit

Permalink
fix multiline string tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 15, 2024
1 parent ecb34f2 commit 0c5604b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_cases/input/multiline_string_whitespace_only.kdl
Original file line number Diff line number Diff line change
@@ -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
   """ #"""

    

"""#
Original file line number Diff line number Diff line change
@@ -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
   """ #"""


"""#

0 comments on commit 0c5604b

Please sign in to comment.