mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 00:54:56 +02:00
Use 'table' on scripts and -c commands (#4377)
* Use 'table' on scripts and -c commands * Fix tests * Oops, missed a spot
This commit is contained in:
@ -122,7 +122,7 @@ fn fetches_more_than_one_column_path() {
|
||||
r#"
|
||||
open sample.toml
|
||||
| get fortune_tellers.2.name fortune_tellers.0.name fortune_tellers.1.name
|
||||
| nth 2
|
||||
| get 2
|
||||
"#
|
||||
));
|
||||
|
||||
@ -222,7 +222,7 @@ fn errors_fetching_by_index_out_of_bounds() {
|
||||
fn quoted_column_access() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
r#"echo '[{"foo bar": {"baz": 4}}]' | from json | get "foo bar".baz "#
|
||||
r#"echo '[{"foo bar": {"baz": 4}}]' | from json | get "foo bar".baz.0 "#
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "4");
|
||||
|
Reference in New Issue
Block a user