Commit 159c01cb authored by Philip Trettner's avatar Philip Trettner

except for split and add_face, topo fuzzer is working

parent 992d7281
Pipeline #12965 failed with stage
in 7 minutes and 24 seconds
Subproject commit 36c49b6dd7d1d4dd96a198541f77882e18741cf5
Subproject commit 1d149fb8aaa0f06ca1256faffb9dea5268eaf1d5
......@@ -15,7 +15,7 @@
TEST_CASE("topo fuzzer")
{
return; // fails currently
// return; // fails currently
for (auto _ = 0; _ < 20; ++_)
{
......@@ -102,12 +102,13 @@ TEST_CASE("topo fuzzer")
});
// edge ops
ops.emplace_back("split edge", [&] {
if (m.edges().empty())
return;
auto e = m.edges().random(rng);
m.edges().split(e);
});
// TODO: fixme!
// ops.emplace_back("split edge", [&] {
// if (m.edges().empty())
// return;
// auto e = m.edges().random(rng);
// m.edges().split(e);
// });
ops.emplace_back("flip edge", [&] {
if (m.edges().empty())
return;
......@@ -163,7 +164,7 @@ TEST_CASE("topo fuzzer")
for (auto i = 0; i < 100; ++i)
{
auto const& op = uniform(rng, ops);
std::cout << op.first << std::endl;
// std::cout << op.first << std::endl;
op.second();
m.assert_consistency();
}
......
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