nushell/crates/nu-command/tests/commands/seq_char.rs

16 lines
348 B
Rust
Raw Normal View History

use nu_test_support::nu;
#[test]
fn fails_when_first_arg_is_multiple_chars() {
let actual = nu!("seq char aa z");
assert!(actual.err.contains("should be 1 character long"));
}
#[test]
fn fails_when_second_arg_is_multiple_chars() {
let actual = nu!("seq char a zz");
assert!(actual.err.contains("should be 1 character long"));
}