From a2c69e2a25d73fd1b475a70cccc80e4adf937b40 Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Sat, 24 Jan 2015 18:26:36 +0100 Subject: [PATCH] Fix type errors in tests --- tests/mat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mat.rs b/tests/mat.rs index a38adf7c..07dcddf1 100644 --- a/tests/mat.rs +++ b/tests/mat.rs @@ -127,7 +127,7 @@ fn test_inv_mat6() { fn test_rotation2() { for _ in (0us .. 10000) { let randmat: na::Rot2 = na::one(); - let ang = Vec1::new(na::abs(&random::()) % BaseFloat::pi()); + let ang = Vec1::new(na::abs(&random::()) % ::pi()); assert!(na::approx_eq(&na::rotation(&na::append_rotation(&randmat, &ang)), &ang)); } @@ -145,7 +145,7 @@ fn test_inv_rotation3() { for _ in (0us .. 10000) { let randmat: Rot3 = na::one(); let dir: Vec3 = random(); - let ang = na::normalize(&dir) * (na::abs(&random::()) % BaseFloat::pi()); + let ang = na::normalize(&dir) * (na::abs(&random::()) % ::pi()); let rot = na::append_rotation(&randmat, &ang); assert!(na::approx_eq(&(na::transpose(&rot) * rot), &na::one()));