mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Fix 'skip' support for binary streams (#5943)
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
mod skip_;
|
||||
mod until;
|
||||
mod while_;
|
||||
|
16
crates/nu-command/tests/commands/skip/skip_.rs
Normal file
16
crates/nu-command/tests/commands/skip/skip_.rs
Normal file
@ -0,0 +1,16 @@
|
||||
use nu_test_support::{nu, pipeline};
|
||||
|
||||
#[test]
|
||||
fn binary_skip() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open sample_data.ods --raw |
|
||||
skip 2 |
|
||||
take 2 |
|
||||
into int
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "772");
|
||||
}
|
Reference in New Issue
Block a user