mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 16:29:21 +02:00
[from/to]tsv support.
This commit is contained in:
@@ -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!(
|
||||
|
Reference in New Issue
Block a user