From e548e1fa5ef01b6feada9d18e59bc1afa3b622e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 20 Jul 2013 17:02:54 +0200 Subject: [PATCH] Add tests for vec0. --- src/tests/vec.rs | 44 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/src/tests/vec.rs b/src/tests/vec.rs index 27619d03..c37bdc70 100644 --- a/src/tests/vec.rs +++ b/src/tests/vec.rs @@ -7,7 +7,7 @@ use std::rand::{random}; #[test] use std::cmp::ApproxEq; #[test] -use vec::{Vec1, Vec2, Vec3, Vec4, Vec5, Vec6}; +use vec::{Vec0, Vec1, Vec2, Vec3, Vec4, Vec5, Vec6}; #[test] use traits::basis::Basis; #[test] @@ -126,20 +126,36 @@ fn test_cross_vec3() } #[test] -fn test_commut_dot_nvec() -{ test_commut_dot_impl!(Vec6); } - +fn test_commut_dot_vec0() +{ test_commut_dot_impl!(Vec0); } + #[test] -fn test_commut_dot_vec3() -{ test_commut_dot_impl!(Vec3); } +fn test_commut_dot_vec1() +{ test_commut_dot_impl!(Vec1); } #[test] fn test_commut_dot_vec2() { test_commut_dot_impl!(Vec2); } #[test] -fn test_commut_dot_vec1() -{ test_commut_dot_impl!(Vec1); } +fn test_commut_dot_vec3() +{ test_commut_dot_impl!(Vec3); } + +#[test] +fn test_commut_dot_vec4() +{ test_commut_dot_impl!(Vec4); } + +#[test] +fn test_commut_dot_vec5() +{ test_commut_dot_impl!(Vec5); } + +#[test] +fn test_commut_dot_vec6() +{ test_commut_dot_impl!(Vec6); } + +#[test] +fn test_basis_vec0() +{ test_basis_impl!(Vec0); } #[test] fn test_basis_vec1() @@ -165,6 +181,10 @@ fn test_basis_vec5() fn test_basis_vec6() { test_basis_impl!(Vec6); } +#[test] +fn test_subspace_basis_vec0() +{ test_subspace_basis_impl!(Vec0); } + #[test] fn test_subspace_basis_vec1() { test_subspace_basis_impl!(Vec1); } @@ -189,6 +209,10 @@ fn test_subspace_basis_vec5() fn test_subspace_basis_vec6() { test_subspace_basis_impl!(Vec6); } +#[test] +fn test_scalar_op_vec0() +{ test_scalar_op_impl!(Vec0, f64); } + #[test] fn test_scalar_op_vec1() { test_scalar_op_impl!(Vec1, f64); } @@ -213,6 +237,10 @@ fn test_scalar_op_vec5() fn test_scalar_op_vec6() { test_scalar_op_impl!(Vec6, f64); } +#[test] +fn test_iterator_vec0() +{ test_iterator_impl!(Vec0, f64); } + #[test] fn test_iterator_vec1() { test_iterator_impl!(Vec1, f64); }