diff --git a/compiler/test_gen/src/gen_num.rs b/compiler/test_gen/src/gen_num.rs index a6cbfad93d..24cec0865e 100644 --- a/compiler/test_gen/src/gen_num.rs +++ b/compiler/test_gen/src/gen_num.rs @@ -361,7 +361,6 @@ mod gen_num { #[test] fn f64_sqrt() { - // FIXME this works with normal types, but fails when checking uniqueness types assert_evals_to!( indoc!( r#" @@ -375,6 +374,21 @@ mod gen_num { ); } + #[test] + fn f64_log() { + assert_evals_to!( + indoc!( + r#" + when Num.log 1 is + Ok val -> val + Err _ -> -1 + "# + ), + 0.0, + f64 + ); + } + #[test] fn f64_round_old() { assert_evals_to!("Num.round 3.6", 4, i64);