fix test math/avg.rs can_average_bytes (#946)

This commit is contained in:
Michael Angerman 2022-02-05 04:01:10 -08:00 committed by GitHub
parent 709927cee4
commit e45e8109aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,14 +14,12 @@ fn can_average_numbers() {
assert_eq!(actual.out, "101.5")
}
// FIXME: jt: needs more work
#[ignore]
#[test]
fn can_average_bytes() {
let actual = nu!(
cwd: "tests/fixtures/formats",
"ls | sort-by name | skip 1 | first 2 | get size | math avg | format \"{$it}\" "
"ls | sort-by name | skip 1 | first 2 | get size | math avg | to json -r"
);
assert_eq!(actual.out, "1.6 KB");
assert_eq!(actual.out, "1600");
}