mirror of
https://github.com/nushell/nushell.git
synced 2025-05-19 17:30:45 +02:00
20 lines
449 B
Rust
20 lines
449 B
Rust
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn fails_on_datetime_input() {
|
|
let actual = nu!("seq date --begin-date (date now)");
|
|
|
|
assert!(actual.err.contains("Type mismatch"))
|
|
}
|
|
|
|
#[test]
|
|
fn fails_when_increment_not_integer_or_duration() {
|
|
let actual = nu!("seq date --begin-date 2020-01-01 --increment 1.1");
|
|
|
|
assert!(
|
|
actual
|
|
.err
|
|
.contains("expected one of a list of accepted shapes: [Duration, Int]")
|
|
)
|
|
}
|