Fix more command tests (#4481)

This commit is contained in:
JT
2022-02-15 10:08:07 -05:00
committed by GitHub
parent 5c1a1be02b
commit 66669d7839
5 changed files with 20 additions and 30 deletions

View File

@ -1,7 +1,5 @@
use nu_test_support::nu;
// FIXME: jt: needs more work
#[ignore]
#[test]
fn can_sqrt_numbers() {
let actual = nu!(
@ -9,11 +7,9 @@ fn can_sqrt_numbers() {
"echo [0.25 2 4] | math sqrt | math sum"
);
assert_eq!(actual.out, "3.914213562373095048801688724209698078569671875376948073176679737990732478462107038850387534327641573");
assert_eq!(actual.out, "3.914213562373095");
}
// FIXME: jt: needs more work
#[ignore]
#[test]
fn can_sqrt_irrational() {
let actual = nu!(
@ -21,7 +17,7 @@ fn can_sqrt_irrational() {
"echo 2 | math sqrt"
);
assert_eq!(actual.out, "1.414213562373095048801688724209698078569671875376948073176679737990732478462107038850387534327641573");
assert_eq!(actual.out, "1.4142135623730951");
}
#[test]