Add tests for vec0.

This commit is contained in:
Sébastien Crozet 2013-07-20 17:02:54 +02:00
parent ae74a05fdd
commit e548e1fa5e
1 changed files with 36 additions and 8 deletions

View File

@ -7,7 +7,7 @@ use std::rand::{random};
#[test] #[test]
use std::cmp::ApproxEq; use std::cmp::ApproxEq;
#[test] #[test]
use vec::{Vec1, Vec2, Vec3, Vec4, Vec5, Vec6}; use vec::{Vec0, Vec1, Vec2, Vec3, Vec4, Vec5, Vec6};
#[test] #[test]
use traits::basis::Basis; use traits::basis::Basis;
#[test] #[test]
@ -126,20 +126,36 @@ fn test_cross_vec3()
} }
#[test] #[test]
fn test_commut_dot_nvec() fn test_commut_dot_vec0()
{ test_commut_dot_impl!(Vec6<f64>); } { test_commut_dot_impl!(Vec0<f64>); }
#[test] #[test]
fn test_commut_dot_vec3() fn test_commut_dot_vec1()
{ test_commut_dot_impl!(Vec3<f64>); } { test_commut_dot_impl!(Vec1<f64>); }
#[test] #[test]
fn test_commut_dot_vec2() fn test_commut_dot_vec2()
{ test_commut_dot_impl!(Vec2<f64>); } { test_commut_dot_impl!(Vec2<f64>); }
#[test] #[test]
fn test_commut_dot_vec1() fn test_commut_dot_vec3()
{ test_commut_dot_impl!(Vec1<f64>); } { test_commut_dot_impl!(Vec3<f64>); }
#[test]
fn test_commut_dot_vec4()
{ test_commut_dot_impl!(Vec4<f64>); }
#[test]
fn test_commut_dot_vec5()
{ test_commut_dot_impl!(Vec5<f64>); }
#[test]
fn test_commut_dot_vec6()
{ test_commut_dot_impl!(Vec6<f64>); }
#[test]
fn test_basis_vec0()
{ test_basis_impl!(Vec0<f64>); }
#[test] #[test]
fn test_basis_vec1() fn test_basis_vec1()
@ -165,6 +181,10 @@ fn test_basis_vec5()
fn test_basis_vec6() fn test_basis_vec6()
{ test_basis_impl!(Vec6<f64>); } { test_basis_impl!(Vec6<f64>); }
#[test]
fn test_subspace_basis_vec0()
{ test_subspace_basis_impl!(Vec0<f64>); }
#[test] #[test]
fn test_subspace_basis_vec1() fn test_subspace_basis_vec1()
{ test_subspace_basis_impl!(Vec1<f64>); } { test_subspace_basis_impl!(Vec1<f64>); }
@ -189,6 +209,10 @@ fn test_subspace_basis_vec5()
fn test_subspace_basis_vec6() fn test_subspace_basis_vec6()
{ test_subspace_basis_impl!(Vec6<f64>); } { test_subspace_basis_impl!(Vec6<f64>); }
#[test]
fn test_scalar_op_vec0()
{ test_scalar_op_impl!(Vec0<f64>, f64); }
#[test] #[test]
fn test_scalar_op_vec1() fn test_scalar_op_vec1()
{ test_scalar_op_impl!(Vec1<f64>, f64); } { test_scalar_op_impl!(Vec1<f64>, f64); }
@ -213,6 +237,10 @@ fn test_scalar_op_vec5()
fn test_scalar_op_vec6() fn test_scalar_op_vec6()
{ test_scalar_op_impl!(Vec6<f64>, f64); } { test_scalar_op_impl!(Vec6<f64>, f64); }
#[test]
fn test_iterator_vec0()
{ test_iterator_impl!(Vec0<f64>, f64); }
#[test] #[test]
fn test_iterator_vec1() fn test_iterator_vec1()
{ test_iterator_impl!(Vec1<f64>, f64); } { test_iterator_impl!(Vec1<f64>, f64); }