Removed useless loops on basis test.
This commit is contained in:
parent
890cdb73f2
commit
931f2e2b80
|
@ -83,8 +83,6 @@ fn test_commut_dot_vec1()
|
|||
|
||||
#[test]
|
||||
fn test_basis_vec1()
|
||||
{
|
||||
for uint::range(0u, 10000u) |_|
|
||||
{
|
||||
let basis = Basis::canonical_basis::<Vec1<f64>>();
|
||||
|
||||
|
@ -93,12 +91,9 @@ fn test_basis_vec1()
|
|||
// check vectors form an orthonormal basis
|
||||
assert!(all(basis, |e| e.norm().fuzzy_eq(&One::one())));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_basis_vec2()
|
||||
{
|
||||
for uint::range(0u, 10000u) |_|
|
||||
{
|
||||
let basis = Basis::canonical_basis::<Vec2<f64>>();
|
||||
|
||||
|
@ -107,12 +102,9 @@ fn test_basis_vec2()
|
|||
// check vectors form an orthonormal basis
|
||||
assert!(all(basis, |e| e.norm().fuzzy_eq(&One::one())));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_basis_vec3()
|
||||
{
|
||||
for uint::range(0u, 10000u) |_|
|
||||
{
|
||||
let basis = Basis::canonical_basis::<Vec3<f64>>();
|
||||
|
||||
|
@ -121,12 +113,9 @@ fn test_basis_vec3()
|
|||
// check vectors form an orthonormal basis
|
||||
assert!(all(basis, |e| e.norm().fuzzy_eq(&One::one())));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_basis_nvec()
|
||||
{
|
||||
for uint::range(0u, 10000u) |_|
|
||||
{
|
||||
let basis = Basis::canonical_basis::<NVec<d7, f64>>();
|
||||
|
||||
|
@ -135,7 +124,6 @@ fn test_basis_nvec()
|
|||
// check vectors form an orthonormal basis
|
||||
assert!(all(basis, |e| e.norm().fuzzy_eq(&One::one())));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_subspace_basis_vec1()
|
||||
|
|
Loading…
Reference in New Issue