Skip to content

Commit 0c5604b

Browse files
committed
fix multiline string tests
1 parent ecb34f2 commit 0c5604b

2 files changed

+25
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
// This file deliberately contains unusual whitespace
2-
// The first two strings are empty
2+
// The first three strings are empty, because whitespace-only lines collapse to
3+
// just `\n`.
34
node """
45
  """ """
56
   \
6-
  
7+
  
78
   """ """
8-
  
9+
  
910
 """\
1011
\ // The next two strings contains only whitespace
1112
"""
1213

13-
14+
  
1415
   \s
1516
   """ #"""
16-
    
17+
    
1718

1819
"""#
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// This file deliberately contains unusual whitespace
2+
// Parsing should fail because not all strings have a matching multiline prefix,
3+
// which must be exact, down to the codepoint, _before_ newline normalization.
4+
node """
5+
  """ """
6+
   \
7+
  
8+
   """ """
9+
  
10+
 """\
11+
\ // The next two strings contains only whitespace
12+
"""
13+
  
14+
15+
   \s
16+
   """ #"""
17+
    
18+
19+
"""#

0 commit comments

Comments
 (0)