mirror of
https://github.com/nushell/nushell.git
synced 2025-04-27 22:58:20 +02:00
filter out the files that have the same size on multiple operating systems
This commit is contained in:
parent
4f91d2512a
commit
9eda573a43
@ -598,10 +598,10 @@ fn can_average_numbers() {
|
|||||||
fn can_average_bytes() {
|
fn can_average_bytes() {
|
||||||
let actual = nu!(
|
let actual = nu!(
|
||||||
cwd: "tests/fixtures/formats",
|
cwd: "tests/fixtures/formats",
|
||||||
"ls | get size | average | echo $it"
|
"ls | sort-by name | skip 1 | first 2 | get size | average | echo $it"
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(actual, "2282.727272727273");
|
assert_eq!(actual, "1600.000000000000");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user