From c086e2c9d794a35df805e93127c0c95f3d93b540 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 18 Aug 2014 22:16:18 +1000 Subject: [PATCH] test: move maths-matrix test to maths dir --- test/.gitignore | 2 +- test/Makefile.am | 2 +- test/{ => maths}/matrix.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename test/{ => maths}/matrix.cpp (98%) diff --git a/test/.gitignore b/test/.gitignore index 7ae1d383..a7106522 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -9,7 +9,7 @@ /json/types /*.log /maths/maths -/matrix +/maths/matrix /md[245] /options /point diff --git a/test/Makefile.am b/test/Makefile.am index 48d3e950..448fad0e 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -10,7 +10,7 @@ TEST_BIN = \ ip \ json/types \ maths/maths \ - matrix \ + maths/matrix \ md2 \ md4 \ md5 \ diff --git a/test/matrix.cpp b/test/maths/matrix.cpp similarity index 98% rename from test/matrix.cpp rename to test/maths/matrix.cpp index d0e8c935..24f3b378 100644 --- a/test/matrix.cpp +++ b/test/maths/matrix.cpp @@ -26,12 +26,12 @@ operator <<(std::ostream &os, const matrix &m) { } -void +void test_zeroes (const matrix &m) { assert (m.rows ()); assert (m.columns ()); - for (unsigned int i = 0; i < m.rows (); ++i) + for (unsigned int i = 0; i < m.rows (); ++i) for (unsigned int j = 0; j < m.columns (); ++j) CHECK_HARD (almost_equal (m[i][j], 0.0)); }