Skip to content

Commit 0439e4f

Browse files
committed
Add multi-line escaped newline test
1 parent 0878029 commit 0439e4f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Tests/RegexTests/ParseTests.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,6 +2099,17 @@ extension RegexTests {
20992099
throwsError: .unsupported, syntax: .extendedSyntax
21002100
)
21012101

2102+
parseWithDelimitersTest(
2103+
#"""
2104+
#/
2105+
a\
2106+
b\
2107+
c
2108+
/#
2109+
"""#,
2110+
concat("a", "\n", "b", "\n", "c")
2111+
)
2112+
21022113
// MARK: Parse with delimiters
21032114

21042115
parseWithDelimitersTest("/a b/", concat("a", " ", "b"))

0 commit comments

Comments
 (0)