2023-04-28 13:25:44 +02:00
|
|
|
use nu_test_support::nu;
|
2022-11-10 02:06:47 +01:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn fails_when_first_arg_is_multiple_chars() {
|
2023-04-28 13:25:44 +02:00
|
|
|
let actual = nu!("seq char aa z");
|
2022-11-10 02:06:47 +01:00
|
|
|
|
|
|
|
assert!(actual.err.contains("should be 1 character long"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn fails_when_second_arg_is_multiple_chars() {
|
2023-04-28 13:25:44 +02:00
|
|
|
let actual = nu!("seq char a zz");
|
2022-11-10 02:06:47 +01:00
|
|
|
|
|
|
|
assert!(actual.err.contains("should be 1 character long"));
|
|
|
|
}
|