mirror of
https://github.com/nushell/nushell
synced 2024-11-10 15:14:14 +00:00
fix test math/avg.rs can_average_bytes (#946)
This commit is contained in:
parent
709927cee4
commit
e45e8109aa
1 changed files with 2 additions and 4 deletions
|
@ -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 a new issue