[from/to]tsv support.

This commit is contained in:
Andrés N. Robalino
2019-08-29 04:02:16 -05:00
parent f050908084
commit f1e8c433c2
10 changed files with 429 additions and 2 deletions

View File

@@ -68,6 +68,21 @@ fn open_can_parse_toml() {
assert_eq!(actual, "2018");
}
#[test]
fn open_can_parse_tsv() {
let actual = nu!(
cwd: "tests/fixtures/formats", h::pipeline(
r#"
open caco3_plastics.tsv
| first 1
| get origin
| echo $it
"#
));
assert_eq!(actual, "SPAIN")
}
#[test]
fn open_can_parse_json() {
let actual = nu!(