test: move maths-matrix test to maths dir

This commit is contained in:
Danny Robson 2014-08-18 22:16:18 +10:00
parent 39617fb471
commit c086e2c9d7
3 changed files with 4 additions and 4 deletions

2
test/.gitignore vendored
View File

@ -9,7 +9,7 @@
/json/types /json/types
/*.log /*.log
/maths/maths /maths/maths
/matrix /maths/matrix
/md[245] /md[245]
/options /options
/point /point

View File

@ -10,7 +10,7 @@ TEST_BIN = \
ip \ ip \
json/types \ json/types \
maths/maths \ maths/maths \
matrix \ maths/matrix \
md2 \ md2 \
md4 \ md4 \
md5 \ md5 \

View File

@ -26,12 +26,12 @@ operator <<(std::ostream &os, const matrix &m) {
} }
void void
test_zeroes (const matrix &m) { test_zeroes (const matrix &m) {
assert (m.rows ()); assert (m.rows ());
assert (m.columns ()); 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) for (unsigned int j = 0; j < m.columns (); ++j)
CHECK_HARD (almost_equal (m[i][j], 0.0)); CHECK_HARD (almost_equal (m[i][j], 0.0));
} }