Skip to content

Commit ed32833

Browse files
committed
Make assertion failure error message more readable
Hopefully that assertion won't fail again, but as long as I've made the change I might as well commit it.
1 parent 15445fe commit ed32833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mesh/mesh_triangulation.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ public:
904904

905905
// If refinement should have increased our element count, check it
906906
if (desired_area || area_func)
907-
CPPUNIT_ASSERT_LESS(mesh.n_elem(), n_original_elem); // n_elem+++
907+
CPPUNIT_ASSERT_GREATER(n_original_elem, mesh.n_elem()); // n_elem+++
908908
else
909909
CPPUNIT_ASSERT_EQUAL(mesh.n_elem(), n_original_elem);
910910

0 commit comments

Comments
 (0)