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
/*.log
/maths/maths
/matrix
/maths/matrix
/md[245]
/options
/point

View File

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

View File

@ -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));
}