Lint test cases in headers

This commit is contained in:
Sam Hedin 2020-03-28 19:46:10 +01:00
parent 4cb22a6a45
commit 088561f6fe

View File

@ -3,14 +3,14 @@ use nu_test_support::{nu, pipeline};
#[test]
fn headers_uses_first_row_as_header() {
let actual = nu!(
cwd: "tests/fixtures/formats", pipeline(
r#"
cwd: "tests/fixtures/formats", pipeline(
r#"
open sample_headers.xlsx
| get Sheet1
| headers
| get header0
| from-json"#
));
));
assert_eq!(actual, "r1c0r2c0")
}