Fix 'skip' support for binary streams (#5943)

This commit is contained in:
JT
2022-07-04 19:53:54 +12:00
committed by GitHub
parent c16d8f0d5f
commit 2da8310b11
3 changed files with 20 additions and 4 deletions

View File

@ -1,2 +1,3 @@
mod skip_;
mod until;
mod while_;

View 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");
}