mirror of
https://github.com/nushell/nushell.git
synced 2025-03-29 09:06:52 +01:00
Add initial test
This commit is contained in:
parent
4159ea0e55
commit
a520f8e370
15
crates/nu-cli/tests/commands/headers.rs
Normal file
15
crates/nu-cli/tests/commands/headers.rs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
use nu_test_support::{nu, pipeline};
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn headers() {
|
||||||
|
let actual = nu!(
|
||||||
|
cwd: "tests/fixtures/formats", pipeline(
|
||||||
|
r#"
|
||||||
|
open sample_headers.xlsx
|
||||||
|
| get Sheet1
|
||||||
|
| headers
|
||||||
|
| get Column1
|
||||||
|
| from-json"#
|
||||||
|
));
|
||||||
|
assert_eq!(actual, "r1c1r2c1")
|
||||||
|
}
|
BIN
tests/fixtures/formats/sample_headers.xlsx
vendored
Normal file
BIN
tests/fixtures/formats/sample_headers.xlsx
vendored
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user