test: Fix some more run-pass bustage. rs=clownshoes
This commit is contained in:
parent
7203be1109
commit
219e260009
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user