From 219e260009e2cf0e11d4cfebcc58c6935dccde1d Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 6 Dec 2012 09:28:16 -0800 Subject: [PATCH] test: Fix some more run-pass bustage. rs=clownshoes --- src/test/run-pass/exterior.rs | 2 +- src/test/run-pass/intrinsics-math.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/run-pass/exterior.rs b/src/test/run-pass/exterior.rs index 6890bb12789..3ae5ceef936 100644 --- a/src/test/run-pass/exterior.rs +++ b/src/test/run-pass/exterior.rs @@ -8,7 +8,7 @@ fn main() { let a: point = {x: 10, y: 11, mut z: 12}; - let b: @point = @a; + let b: @point = @copy a; assert (b.z == 12); f(b); assert (a.z == 12); diff --git a/src/test/run-pass/intrinsics-math.rs b/src/test/run-pass/intrinsics-math.rs index dff72327d17..e2ab83b928f 100644 --- a/src/test/run-pass/intrinsics-math.rs +++ b/src/test/run-pass/intrinsics-math.rs @@ -51,7 +51,7 @@ fn main() { assert(powf32(25f32, -2f32) == 0.0016f32); assert(powf64(400f64, 0.5f64) == 20f64); - assert(expf32(1f32) == f32::consts::e); + assert(fabsf32(expf32(1f32) - f32::consts::e) < 0.000001f32); assert(expf64(1f64) == f64::consts::e); assert(exp2f32(10f32) == 1024f32);