Commit 58ce8a8c authored by Martin Heistermann's avatar Martin Heistermann

Tests: fix warnings from implicit int() deprecation

parent 41080774
Pipeline #8707 passed with stage
in 3 minutes and 58 seconds
This diff is collapsed.
......@@ -8,6 +8,10 @@
#include <OpenVolumeMesh/Mesh/TetrahedralMesh.hh>
#include <OpenVolumeMesh/Geometry/VectorT.hh>
#define EXPECT_HANDLE_EQ(a, b) EXPECT_EQ((a).idx(), (b).idx())
#define EXPECT_HANDLE_NE(a, b) EXPECT_NE((a).idx(), (b).idx())
/*
* Simple test setting for polyhedral meshes
*/
......
......@@ -12,14 +12,14 @@ TEST_F(HexahedralMeshBase, HexVertexIterTest) {
EXPECT_TRUE(hv_it.valid());
EXPECT_EQ(VertexHandle(0), *hv_it); ++hv_it;
EXPECT_EQ(VertexHandle(1), *hv_it); ++hv_it;
EXPECT_EQ(VertexHandle(2), *hv_it); ++hv_it;
EXPECT_EQ(VertexHandle(3), *hv_it); ++hv_it;
EXPECT_EQ(VertexHandle(4), *hv_it); ++hv_it;
EXPECT_EQ(VertexHandle(7), *hv_it); ++hv_it;
EXPECT_EQ(VertexHandle(6), *hv_it); ++hv_it;
EXPECT_EQ(VertexHandle(5), *hv_it);
EXPECT_HANDLE_EQ(VertexHandle(0), *hv_it); ++hv_it;
EXPECT_HANDLE_EQ(VertexHandle(1), *hv_it); ++hv_it;
EXPECT_HANDLE_EQ(VertexHandle(2), *hv_it); ++hv_it;
EXPECT_HANDLE_EQ(VertexHandle(3), *hv_it); ++hv_it;
EXPECT_HANDLE_EQ(VertexHandle(4), *hv_it); ++hv_it;
EXPECT_HANDLE_EQ(VertexHandle(7), *hv_it); ++hv_it;
EXPECT_HANDLE_EQ(VertexHandle(6), *hv_it); ++hv_it;
EXPECT_HANDLE_EQ(VertexHandle(5), *hv_it);
}
TEST_F(TetrahedralMeshBase, VertexVertexIteratorTest) {
......
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