Skip to content

Commit 16e3167

Browse files
committed
add relevant test for testing regex parsing escaped quote
1 parent 5330843 commit 16e3167

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/reader.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,14 @@ mod tests {
835835
try_read("#\"hello\" ").ok().unwrap().1
836836
);
837837
}
838+
839+
#[test]
840+
fn try_read_regex_pattern_escaped_quote_test() {
841+
assert_eq!(
842+
Value::Pattern(regex::Regex::new("hel\"lo").unwrap()),
843+
try_read("#\"hel\"lo\" ").ok().unwrap().1
844+
);
845+
}
838846
}
839847

840848
mod consume_clojure_whitespaces_tests {

0 commit comments

Comments
 (0)