diff --git a/.travis.yml b/.travis.yml index f4f8ba684d..758354c48e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ script: - cmake -DCMAKE_BUILD_TYPE=Profile . - make - make check_format - - make test + - ctest -V after_success: - cpp-coveralls -i matrix env: diff --git a/matrix/Matrix.hpp b/matrix/Matrix.hpp index 560bb4ddd3..3cc563ea5a 100644 --- a/matrix/Matrix.hpp +++ b/matrix/Matrix.hpp @@ -443,7 +443,7 @@ Matrix operator*(Type scalar, const Matrix &other) template bool isEqual(const Matrix &x, - const Matrix & y) { + const Matrix & y) { if (!(x == y)) { char buf_x[100]; char buf_y[100]; diff --git a/test/attitude.cpp b/test/attitude.cpp index 0798cae27c..86ce68e45c 100644 --- a/test/attitude.cpp +++ b/test/attitude.cpp @@ -51,7 +51,7 @@ int main() // quat normalization q.normalize(); TEST(isEqual(q, Quatf(0.18257419f, 0.36514837f, - 0.54772256f, 0.73029674f))); + 0.54772256f, 0.73029674f))); // quat default ctor q = Quatf(); diff --git a/test/helper.cpp b/test/helper.cpp index adb27678d7..e1cd2bf009 100644 --- a/test/helper.cpp +++ b/test/helper.cpp @@ -12,6 +12,12 @@ int main() TEST(fabs(wrap_pi(-4.0) - (-4.0 + 2*M_PI)) < 1e-5); TEST(fabs(wrap_pi(3.0) - (3.0)) < 1e-3); wrap_pi(NAN); + + Vector3f a(1, 2, 3); + Vector3f b(4, 5, 6); + a.T().print(); + TEST(!isEqual(a, b)); + TEST(isEqual(a, a)); return 0; }