mirror of
https://github.com/nushell/nushell.git
synced 2025-06-01 23:55:50 +02:00
Lint test cases in headers
This commit is contained in:
parent
4cb22a6a45
commit
088561f6fe
@ -3,14 +3,14 @@ use nu_test_support::{nu, pipeline};
|
|||||||
#[test]
|
#[test]
|
||||||
fn headers_uses_first_row_as_header() {
|
fn headers_uses_first_row_as_header() {
|
||||||
let actual = nu!(
|
let actual = nu!(
|
||||||
cwd: "tests/fixtures/formats", pipeline(
|
cwd: "tests/fixtures/formats", pipeline(
|
||||||
r#"
|
r#"
|
||||||
open sample_headers.xlsx
|
open sample_headers.xlsx
|
||||||
| get Sheet1
|
| get Sheet1
|
||||||
| headers
|
| headers
|
||||||
| get header0
|
| get header0
|
||||||
| from-json"#
|
| from-json"#
|
||||||
));
|
));
|
||||||
|
|
||||||
assert_eq!(actual, "r1c0r2c0")
|
assert_eq!(actual, "r1c0r2c0")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user