From e45e8109aa7c522e0f235c927fd9ace4078ebf2e Mon Sep 17 00:00:00 2001 From: Michael Angerman <1809991+stormasm@users.noreply.github.com> Date: Sat, 5 Feb 2022 04:01:10 -0800 Subject: [PATCH] fix test math/avg.rs can_average_bytes (#946) --- crates/nu-command/tests/commands/math/avg.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/nu-command/tests/commands/math/avg.rs b/crates/nu-command/tests/commands/math/avg.rs index e3351c3702..3ad0709bda 100644 --- a/crates/nu-command/tests/commands/math/avg.rs +++ b/crates/nu-command/tests/commands/math/avg.rs @@ -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"); }