Skip to content

Commit c739c28

Browse files
committed
Add multi-line escaped newline test
1 parent b3a966f commit c739c28

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

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

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

0 commit comments

Comments
 (0)