Add regression test

This commit is contained in:
Niklas Mohrin 2026-03-28 22:53:49 +01:00
commit 62e9d25f6b
No known key found for this signature in database
GPG key ID: 0ACD89A5C1DEB3EB

View file

@ -433,5 +433,12 @@ mod tests {
],
);
}
#[test]
/// Regression test for https://github.com/tealdeer-rs/tealdeer/issues/473
fn prefix_check_character_boundary() {
assert_eq!("Ä".len(), 2);
assert_eq!(run("", r#"Äxx{{x}}"#), [NormalCode("Äxx"), Variable("x")],);
}
}
}