let to nuon convert column names with spaces (#6376)

* let `to nuon` convert column names with spaces

* change test
This commit is contained in:
pwygab
2022-08-21 18:12:13 +08:00
committed by GitHub
parent 37bc90c62a
commit 56ce10347e
2 changed files with 15 additions and 0 deletions

View File

@ -238,3 +238,14 @@ fn float_nan_parsed_properly() {
assert_eq!(actual.out, "NaN")
}
#[test]
fn to_nuon_converts_columns_with_spaces() {
let actual = nu!(
cwd: "tests/fixtures/formats", pipeline(
r#"
let test = [[a, b, "c d"]; [1 2 3] [4 5 6]]; $test | to nuon | from nuon
"#
));
assert!(actual.err.is_empty());
}