Fix failing test after #7051 (#7299)

Numerics as record names have to be quoted
Changed to string
This commit is contained in:
Stefan Holderbach 2022-12-01 00:48:02 +01:00 committed by GitHub
parent fd503fceaf
commit 1f9907d2ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -515,8 +515,8 @@ fn adding_tables() {
let actual = nu!( let actual = nu!(
cwd: "tests/fixtures/formats", pipeline( cwd: "tests/fixtures/formats", pipeline(
r#" r#"
[[a b]; [1 2]] ++ [[4 5]; [10 11]] | to nuon [[a b]; [1 2]] ++ [[c d]; [10 11]] | to nuon
"# "#
)); ));
assert_eq!(actual.out, "[{a: 1, b: 2}, {4: 10, 5: 11}]"); assert_eq!(actual.out, "[{a: 1, b: 2}, {c: 10, d: 11}]");
} }