mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Use differnt atan test based on os
This commit is contained in:
parent
21d4f8026e
commit
6253ac15e4
1 changed files with 9 additions and 1 deletions
|
@ -686,11 +686,19 @@ mod gen_num {
|
||||||
assert_evals_to!("Num.powInt 2 3", 8, i64);
|
assert_evals_to!("Num.powInt 2 3", 8, i64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For some reason, libm's atan has slightly different results on macos vs non-macos
|
||||||
#[test]
|
#[test]
|
||||||
fn atan() {
|
#[cfg(target_os = "macos")]
|
||||||
|
fn atan_macos() {
|
||||||
assert_evals_to!("Num.atan 10", 1.4711276743037345, f64);
|
assert_evals_to!("Num.atan 10", 1.4711276743037345, f64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[cfg(not(target_os = "macos"))]
|
||||||
|
fn atan() {
|
||||||
|
assert_evals_to!("Num.atan 10", 1.4711276743037347, f64);
|
||||||
|
}
|
||||||
|
|
||||||
// #[test]
|
// #[test]
|
||||||
// #[should_panic(expected = r#"Roc failed with message: "integer addition overflowed!"#)]
|
// #[should_panic(expected = r#"Roc failed with message: "integer addition overflowed!"#)]
|
||||||
// fn int_overflow() {
|
// fn int_overflow() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue