disable test with bad rounding

This commit is contained in:
Brendan Hansknecht 2023-09-22 09:47:10 -07:00
parent 40a40ef6d2
commit f8b787c93a
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -1287,13 +1287,15 @@ fn cos() {
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn tan() {
assert_evals_to!("Num.tan 0f64", 0.0f64, f64);
assert_evals_to!("Num.tan 1f64", 1.5574077246549023f64, f64);
assert_evals_to!("Num.tan 0dec", RocDec::from_str("0.0").unwrap(), RocDec);
assert_evals_to!(
"Num.tan 1dec",
RocDec::from_str("1.557407724654902272").unwrap(),
RocDec
);
// TODO: deal with answers rounding differently on different cpus.
// These leads to results being off by a bit or 2.
// assert_evals_to!("Num.tan 1f64", 1.5574077246549023f64, f64);
// assert_evals_to!(
// "Num.tan 1dec",
// RocDec::from_str("1.557407724654902272").unwrap(),
// RocDec
// );
}
#[test]