From 563812659834f9032d25a297c41f7386c52301fa Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 19 Mar 2018 14:23:39 -0700 Subject: [PATCH] Add more math intrinsics to test Just in case more crop up! --- tests/math.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/math.rs b/tests/math.rs index 56c8811b..1087b912 100644 --- a/tests/math.rs +++ b/tests/math.rs @@ -28,6 +28,7 @@ fn auto_bind_math() { b.exp() + b.exp2() + b.mul_add(b, b) + + b.ln() + b.log(b) + b.log10() + b.log2() + @@ -35,11 +36,18 @@ fn auto_bind_math() { b.powf(b) + b.round() + b.sin() + + b.abs() + + b.signum() + + b.floor() + + b.ceil() + + b.trunc() + + b.sqrt() + (b % (a as f64)) + ((a.cos() + a.exp() + a.exp2() + a.mul_add(a, a) + + a.ln() + a.log(a) + a.log10() + a.log2() + @@ -47,6 +55,12 @@ fn auto_bind_math() { a.powf(a) + a.round() + a.sin() + + a.abs() + + a.signum() + + a.floor() + + a.ceil() + + a.trunc() + + a.sqrt() + (a % (b as f32))) as f64) + (b + 2.0f64.powf(a as f64)) }