mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 23:49:44 +01:00
fix test math/avg.rs can_average_bytes (#946)
This commit is contained in:
parent
709927cee4
commit
e45e8109aa
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user