Skip to content

Commit 4e4c4ca

Browse files
committed
tests: advec: using different matcher
1 parent 0eba48a commit 4e4c4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/examples/advection_diffusion/test_mpi_advection_diffusion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ TEST(ErrorTest, MPIPFASST)
3434
vector<double> ex = { 1.1168e-13, 4.8849e-13, 5.3268e-13, 2.3059e-12 };
3535
for (auto& x: errors) {
3636
if (get_iter(x) == max_iter) {
37-
EXPECT_NEAR(get_error(x), ex[get_step(x)], 1e-14);
37+
EXPECT_THAT(get_error(x), DoubleNear(ex[get_step(x)], 1e-14));
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)