From 377f8b55966813dd025e09838fc70a5495266179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 4 Dec 2016 23:00:12 +0100 Subject: [PATCH] Fix travis.yml. --- .travis.yml | 2 +- Makefile | 31 ++++++------------------------- tests/quaternion.rs | 2 +- 3 files changed, 8 insertions(+), 27 deletions(-) diff --git a/.travis.yml b/.travis.yml index 88f0886ac..2b1fd3120 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,5 +3,5 @@ language: rust script: - rustc --version - cargo --version - - cargo build --verbose --features "arbitrary generic_sizes" + - cargo build --verbose --features arbitrary - cargo test --verbose --features arbitrary diff --git a/Makefile b/Makefile index 78a080eef..f9586c02d 100644 --- a/Makefile +++ b/Makefile @@ -1,30 +1,11 @@ -tmp=_git_distcheck - all: - cargo build --release --features "arbitrary generic_sizes abstract_algebra" - -test: - cargo test --features "arbitrary generic_sizes abstract_algebra" - - -bench: - cargo bench --features "arbitrary generic_sizes abstract_algebra" - + cargo build --features "arbitrary" doc: - cargo doc --no-deps --features "arbitrary generic_sizes abstract_algebra" - - -clean: - cargo clean + cargo doc -distcheck: - rm -rf $(tmp) - git clone --recursive . $(tmp) - make -C $(tmp) - make -C $(tmp) test - make -C $(tmp) bench - rm -rf $(tmp) +bench: + cargo bench -.PHONY:doc -.PHONY:test +test: + cargo test --features "arbitrary" diff --git a/tests/quaternion.rs b/tests/quaternion.rs index bcd5de64f..bd7d1962b 100644 --- a/tests/quaternion.rs +++ b/tests/quaternion.rs @@ -100,7 +100,7 @@ quickcheck!( fn all_op_exist(q: Quaternion, uq: UnitQuaternion, v: Vector3, p: Point3, r: Rotation3, s: f64) -> bool { - let uv = Unit::new(v); + let uv = Unit::new_normalize(v); let qpq = q + q; let qmq = q - q;