Commit d4f62bfe authored by Chuanren Wu's avatar Chuanren Wu

make some tests more strictly

parent b61b9c17
......@@ -173,7 +173,7 @@ TEST(BC, SingleSegment4)
<< vl[0] << " + " << vl[1] << " = "
<< vl[2] << " + " << vl[3];
for (int i = 0; i < 4; ++i) {
EXPECT_LE(vl[i]-1, v[i])
EXPECT_LE(vl[i], v[i])
<< "With equation " << i << " :"
<< vl[0] << " + " << vl[1] << " = "
<< vl[2] << " + " << vl[3]
......@@ -311,7 +311,7 @@ TEST(BC, ThreeSegment1)
auto v = discretize(vl, cs);
ASSERT_NE(0, v.size());
for (int i = 0; i < 12; ++i) {
EXPECT_LE(10, v[i]) << "on edge " << i;
EXPECT_LE(100, v[i]) << "on edge " << i;
}
EXPECT_EQ(v[0], v[2]);
EXPECT_EQ(v[1], v[3]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment