mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
add test
This commit is contained in:
parent
f62ac3eb6f
commit
df90889d72
1 changed files with 10 additions and 0 deletions
|
|
@ -617,6 +617,16 @@ mod test {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn strip_clozes_regex() {
|
||||
assert_eq!(
|
||||
strip_clozes(
|
||||
r#"The {{c1::moon::🌛}} {{c2::orbits::this hint has "::" in it}} the {{c3::🌏}}."#
|
||||
),
|
||||
"The moon orbits the 🌏."
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn mathjax_html() {
|
||||
// escaped angle brackets should be preserved
|
||||
|
|
|
|||
Loading…
Reference in a new issue