add a test covering the #15675

This commit is contained in:
Nyx Ronin 2025-05-03 03:41:19 +03:00
parent 8f63db4c95
commit c6a2996d46

View File

@ -376,6 +376,20 @@ mod tests {
); );
} }
#[test]
fn test_numbers_proceeding_escape_char_not_ignored() {
assert_eq!(
str_expand("1\\\\{a,b}", Span::test_data(), Span::test_data()),
Value::list(
vec![
Value::string(String::from("1\\a"), Span::test_data(),),
Value::string(String::from("1\\b"), Span::test_data(),)
],
Span::test_data(),
)
);
}
#[test] #[test]
fn test_examples() { fn test_examples() {
use crate::test_examples; use crate::test_examples;