1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-25 14:07:26 +01:00

Add initial test

This commit is contained in:
Sam Hedin 2020-03-28 19:38:19 +01:00
parent 4159ea0e55
commit a520f8e370
2 changed files with 15 additions and 0 deletions
crates/nu-cli/tests/commands
tests/fixtures/formats

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

Binary file not shown.