Let the test suite run with no features

This commit is contained in:
Eduard Bopp 2018-01-17 15:47:28 +01:00
parent 57bfee4615
commit 5b2e383320
10 changed files with 12 additions and 2 deletions

View File

@ -25,6 +25,7 @@ script:
- cargo build --verbose --features mint
- cargo build --verbose --features serde-serialize
- cargo build --verbose --features abomonation-serialize
- cargo test --verbose
- cargo test --verbose --features "debug arbitrary mint serde-serialize abomonation-serialize"
- cd nalgebra-lapack; cargo test --verbose

View File

@ -1,3 +1,4 @@
#![cfg(feature = "arbitrary")]
use alga::linear::Transformation;
use na::{
self,
@ -13,7 +14,6 @@ use na::{
Projective3, Transform3, Rotation3, UnitQuaternion};
#[cfg(feature = "arbitrary")]
quickcheck!{
fn translation_conversion(t: Translation3<f64>, v: Vector3<f64>, p: Point3<f64>) -> bool {
let iso: Isometry3<f64> = na::convert(t);

View File

@ -1,3 +1,5 @@
#![cfg(feature = "serde-serialize")]
use serde_json;
use rand;
use na::{

View File

@ -1,3 +1,4 @@
#![cfg(feature = "arbitrary")]
#![allow(non_snake_case)]
use alga::linear::{Transformation, ProjectiveTransformation};

View File

@ -1,3 +1,4 @@
#![cfg(feature = "arbitrary")]
use num::Zero;
use na::{Point3, Vector3, Vector4};

View File

@ -1,3 +1,4 @@
#![cfg(feature = "arbitrary")]
#![allow(non_snake_case)]
use na::{Unit, UnitQuaternion, Quaternion, Vector3, Point3, Rotation3};

View File

@ -18,6 +18,7 @@ fn angle_3() {
assert_eq!(a.angle(&b), 0.0);
}
#[cfg(feature = "arbitrary")]
quickcheck!(
/*
*

View File

@ -3,6 +3,7 @@
use alga::linear::{Transformation, ProjectiveTransformation};
use na::{Vector3, Point3, Similarity3, Translation3, Isometry3, UnitQuaternion};
#[cfg(feature = "arbitrary")]
quickcheck!(
fn inverse_is_identity(i: Similarity3<f64>, p: Point3<f64>, v: Vector3<f64>) -> bool {
let ii = i.inverse();

View File

@ -3,6 +3,7 @@
use na::{Unit, UnitComplex, Vector2, Point2, Rotation2};
#[cfg(feature = "arbitrary")]
quickcheck!(
/*

View File

@ -1,9 +1,10 @@
#![cfg(feature = "arbitrary")]
use std::cmp;
use na::{DMatrix, Matrix4x3, DVector, Vector4};
use na::dimension::U4;
use na::debug::RandomSDP;
#[cfg(feature = "arbitrary")]
quickcheck! {
fn cholesky(m: RandomSDP<f64>) -> bool {
let mut m = m.unwrap();