test: move maths-matrix test to maths dir
This commit is contained in:
parent
39617fb471
commit
c086e2c9d7
2
test/.gitignore
vendored
2
test/.gitignore
vendored
@ -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
|
||||||
|
@ -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 \
|
||||||
|
@ -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));
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user