mirror of
https://github.com/nushell/nushell.git
synced 2025-06-20 01:48:09 +02:00
add a test covering the #15675
This commit is contained in:
parent
8f63db4c95
commit
c6a2996d46
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user