Skip to content

Commit d034dee

Browse files
committed
Add multi-line escaped newline test
1 parent 2265620 commit d034dee

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
@@ -2096,6 +2096,17 @@ extension RegexTests {
20962096
throwsError: .unsupported, syntax: .extendedSyntax
20972097
)
20982098

2099+
parseWithDelimitersTest(
2100+
#"""
2101+
#/
2102+
a\
2103+
b\
2104+
c
2105+
/#
2106+
"""#,
2107+
concat("a", "\n", "b", "\n", "c")
2108+
)
2109+
20992110
// MARK: Parse with delimiters
21002111

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

0 commit comments

Comments
 (0)