fix multiline string tests

This commit is contained in:
Kat Marchán 2024-12-15 15:29:42 -08:00
parent ecb34f2cd6
commit 0c5604b462
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
2 changed files with 25 additions and 5 deletions

View File

@ -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
  """ #"""
  
  
"""#

View File

@ -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
  """ #"""
  
"""#