Skip to content

Commit 04ad64a

Browse files
committed
Add a couple of quoted test cases
1 parent 8febede commit 04ad64a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/RegexTests/ParseTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,10 @@ extension RegexTests {
488488
#"a\Q \Q \\.\Eb"#,
489489
concat("a", quote(#" \Q \\."#), "b"))
490490

491+
// These follow the PCRE behavior.
492+
parseTest(#"\Q\\E"#, quote("\\"))
493+
parseTest(#"\E"#, "E")
494+
491495
parseTest(#"a" ."b"#, concat("a", quote(" ."), "b"),
492496
syntax: .experimental)
493497
parseTest(#"a" .""b""#, concat("a", quote(" ."), quote("b")),

0 commit comments

Comments
 (0)