mirror of
https://github.com/nushell/nushell.git
synced 2024-12-13 18:52:01 +01:00
187b87c61c
# Description Close: #12514 # User-Facing Changes `^ls | skip 1` will raise an error ```nushell ❯ ^ls | skip 1 Error: nu:🐚:only_supports_this_input_type × Input type not supported. ╭─[entry #1:1:2] 1 │ ^ls | skip 1 · ─┬ ──┬─ · │ ╰── only list, binary or range input data is supported · ╰── input type: raw data ╰──── ``` # Tests + Formatting Sorry I can't add it because of the issue: https://github.com/nushell/nushell/issues/12558 # After Submitting Nan
19 lines
391 B
Rust
19 lines
391 B
Rust
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn binary_skip_will_raise_error() {
|
|
let actual = nu!(
|
|
cwd: "tests/fixtures/formats",
|
|
"open sample_data.ods --raw | skip 2"
|
|
);
|
|
|
|
assert!(actual.err.contains("only_supports_this_input_type"));
|
|
}
|
|
|
|
#[test]
|
|
fn fail_on_non_iterator() {
|
|
let actual = nu!("1 | skip 2");
|
|
|
|
assert!(actual.err.contains("command doesn't support"));
|
|
}
|