You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
582 B
21 lines
582 B
1 year ago
|
#include <test_common.h>
|
||
|
|
||
|
TEST_CASE("readDMAT: Comp", "[igl]")
|
||
|
{
|
||
|
Eigen::MatrixXd N1, N2;
|
||
|
igl::readDMAT(test_common::data_path("duplicated_faces_N1.dmat"), N1);
|
||
|
igl::readDMAT(test_common::data_path("duplicated_faces_N2.dmat"), N2);
|
||
|
|
||
|
REQUIRE (N2.rows() == N1.rows());
|
||
|
REQUIRE (N2.cols() == N1.cols());
|
||
|
REQUIRE (!((N1-N2).array() != 0.0).all());
|
||
|
|
||
|
const size_t rows = N1.rows();
|
||
|
const size_t cols = N1.cols();
|
||
|
for (size_t i=0; i<rows; i++) {
|
||
|
for (size_t j=0; j<cols; j++) {
|
||
|
REQUIRE (N2(i,j) == Approx(N1(i,j)));
|
||
|
}
|
||
|
}
|
||
|
}
|