2024-04-19 16:54:59 +02:00
|
|
|
use nu_test_support::nu;
|
2022-07-04 09:53:54 +02:00
|
|
|
|
|
|
|
#[test]
|
2024-04-19 16:54:59 +02:00
|
|
|
fn binary_skip_will_raise_error() {
|
2022-07-04 09:53:54 +02:00
|
|
|
let actual = nu!(
|
2024-04-19 16:54:59 +02:00
|
|
|
cwd: "tests/fixtures/formats",
|
|
|
|
"open sample_data.ods --raw | skip 2"
|
|
|
|
);
|
2022-07-04 09:53:54 +02:00
|
|
|
|
2024-04-19 16:54:59 +02:00
|
|
|
assert!(actual.err.contains("only_supports_this_input_type"));
|
2022-07-04 09:53:54 +02:00
|
|
|
}
|
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists (#7623)
Closes https://github.com/nushell/nushell/issues/6941
2022-12-31 12:35:12 +01:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn fail_on_non_iterator() {
|
2023-07-17 18:43:51 +02:00
|
|
|
let actual = nu!("1 | skip 2");
|
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists (#7623)
Closes https://github.com/nushell/nushell/issues/6941
2022-12-31 12:35:12 +01:00
|
|
|
|
2023-07-14 05:20:35 +02:00
|
|
|
assert!(actual.err.contains("command doesn't support"));
|
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists (#7623)
Closes https://github.com/nushell/nushell/issues/6941
2022-12-31 12:35:12 +01:00
|
|
|
}
|