mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:25:38 +02:00
Allow expanding aliases before keywords, improve hiding (#4858)
* Allow aliasing source * Add test * improve hiding * Finish adding tests * fix test
This commit is contained in:
@ -18,8 +18,8 @@ fn can_average_numbers() {
|
||||
fn can_average_bytes() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
"ls | sort-by name | skip 1 | first 2 | get size | math avg | to json -r"
|
||||
"[100kb, 10b, 100mib] | math avg | to json -r"
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "1600");
|
||||
assert_eq!(actual.out, "34985870");
|
||||
}
|
||||
|
Reference in New Issue
Block a user