Let the test suite run with no features
This commit is contained in:
parent
57bfee4615
commit
5b2e383320
|
@ -25,6 +25,7 @@ script:
|
||||||
- cargo build --verbose --features mint
|
- cargo build --verbose --features mint
|
||||||
- cargo build --verbose --features serde-serialize
|
- cargo build --verbose --features serde-serialize
|
||||||
- cargo build --verbose --features abomonation-serialize
|
- cargo build --verbose --features abomonation-serialize
|
||||||
|
- cargo test --verbose
|
||||||
- cargo test --verbose --features "debug arbitrary mint serde-serialize abomonation-serialize"
|
- cargo test --verbose --features "debug arbitrary mint serde-serialize abomonation-serialize"
|
||||||
- cd nalgebra-lapack; cargo test --verbose
|
- cd nalgebra-lapack; cargo test --verbose
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#![cfg(feature = "arbitrary")]
|
||||||
use alga::linear::Transformation;
|
use alga::linear::Transformation;
|
||||||
use na::{
|
use na::{
|
||||||
self,
|
self,
|
||||||
|
@ -13,7 +14,6 @@ use na::{
|
||||||
Projective3, Transform3, Rotation3, UnitQuaternion};
|
Projective3, Transform3, Rotation3, UnitQuaternion};
|
||||||
|
|
||||||
|
|
||||||
#[cfg(feature = "arbitrary")]
|
|
||||||
quickcheck!{
|
quickcheck!{
|
||||||
fn translation_conversion(t: Translation3<f64>, v: Vector3<f64>, p: Point3<f64>) -> bool {
|
fn translation_conversion(t: Translation3<f64>, v: Vector3<f64>, p: Point3<f64>) -> bool {
|
||||||
let iso: Isometry3<f64> = na::convert(t);
|
let iso: Isometry3<f64> = na::convert(t);
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#![cfg(feature = "serde-serialize")]
|
||||||
|
|
||||||
use serde_json;
|
use serde_json;
|
||||||
use rand;
|
use rand;
|
||||||
use na::{
|
use na::{
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#![cfg(feature = "arbitrary")]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
use alga::linear::{Transformation, ProjectiveTransformation};
|
use alga::linear::{Transformation, ProjectiveTransformation};
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#![cfg(feature = "arbitrary")]
|
||||||
use num::Zero;
|
use num::Zero;
|
||||||
use na::{Point3, Vector3, Vector4};
|
use na::{Point3, Vector3, Vector4};
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#![cfg(feature = "arbitrary")]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
use na::{Unit, UnitQuaternion, Quaternion, Vector3, Point3, Rotation3};
|
use na::{Unit, UnitQuaternion, Quaternion, Vector3, Point3, Rotation3};
|
||||||
|
|
|
@ -18,6 +18,7 @@ fn angle_3() {
|
||||||
assert_eq!(a.angle(&b), 0.0);
|
assert_eq!(a.angle(&b), 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "arbitrary")]
|
||||||
quickcheck!(
|
quickcheck!(
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
use alga::linear::{Transformation, ProjectiveTransformation};
|
use alga::linear::{Transformation, ProjectiveTransformation};
|
||||||
use na::{Vector3, Point3, Similarity3, Translation3, Isometry3, UnitQuaternion};
|
use na::{Vector3, Point3, Similarity3, Translation3, Isometry3, UnitQuaternion};
|
||||||
|
|
||||||
|
#[cfg(feature = "arbitrary")]
|
||||||
quickcheck!(
|
quickcheck!(
|
||||||
fn inverse_is_identity(i: Similarity3<f64>, p: Point3<f64>, v: Vector3<f64>) -> bool {
|
fn inverse_is_identity(i: Similarity3<f64>, p: Point3<f64>, v: Vector3<f64>) -> bool {
|
||||||
let ii = i.inverse();
|
let ii = i.inverse();
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
use na::{Unit, UnitComplex, Vector2, Point2, Rotation2};
|
use na::{Unit, UnitComplex, Vector2, Point2, Rotation2};
|
||||||
|
|
||||||
|
|
||||||
|
#[cfg(feature = "arbitrary")]
|
||||||
quickcheck!(
|
quickcheck!(
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
|
#![cfg(feature = "arbitrary")]
|
||||||
|
|
||||||
use std::cmp;
|
use std::cmp;
|
||||||
use na::{DMatrix, Matrix4x3, DVector, Vector4};
|
use na::{DMatrix, Matrix4x3, DVector, Vector4};
|
||||||
use na::dimension::U4;
|
use na::dimension::U4;
|
||||||
use na::debug::RandomSDP;
|
use na::debug::RandomSDP;
|
||||||
|
|
||||||
#[cfg(feature = "arbitrary")]
|
|
||||||
quickcheck! {
|
quickcheck! {
|
||||||
fn cholesky(m: RandomSDP<f64>) -> bool {
|
fn cholesky(m: RandomSDP<f64>) -> bool {
|
||||||
let mut m = m.unwrap();
|
let mut m = m.unwrap();
|
||||||
|
|
Loading…
Reference in New Issue