12 mesh::Mesh mesh(
"2D Testmesh", 2, testing::nextMeshID());
19 auto index = locateInvalidVertexID(mesh, VIDs{v1, v2, 99});
20 BOOST_TEST(
index.has_value());
21 BOOST_TEST(
index.value() == 2);
24 auto index = locateInvalidVertexID(mesh, VIDs{99, v1, v2});
25 BOOST_TEST(
index.has_value());
26 BOOST_TEST(
index.value() == 0);
29 auto index = locateInvalidVertexID(mesh, VIDs{99, v1, v2, 99});
30 BOOST_TEST(
index.has_value());
31 BOOST_TEST(
index.value() == 0);
34 auto index = locateInvalidVertexID(mesh, VIDs{v1, v2, 99, v1, v2});
35 BOOST_TEST(
index.has_value());
36 BOOST_TEST(
index.value() == 2);
39 auto index = locateInvalidVertexID(mesh, VIDs{99});
40 BOOST_TEST(
index.has_value());
41 BOOST_TEST(
index.value() == 0);
44 auto index = locateInvalidVertexID(mesh, VIDs{v1, v2});
45 BOOST_TEST(!
index.has_value());
48 auto index = locateInvalidVertexID(mesh, VIDs{});
49 BOOST_TEST(!
index.has_value());
52 auto index = locateInvalidVertexID(mesh, VIDs{99});
53 BOOST_TEST(
index.has_value());
54 BOOST_TEST(
index.value() == 0);