From 74732cf02f583ac5708d5faaf6fbba3956e2dc1e Mon Sep 17 00:00:00 2001 From: Rayan Syed Date: Mon, 30 Mar 2026 14:19:35 -0400 Subject: [PATCH] fixed bug in problem 2 tests --- tests/testMaxPlanarSubgraph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testMaxPlanarSubgraph.cpp b/tests/testMaxPlanarSubgraph.cpp index d94d2c7..5302d73 100644 --- a/tests/testMaxPlanarSubgraph.cpp +++ b/tests/testMaxPlanarSubgraph.cpp @@ -72,10 +72,10 @@ bool test_0() { "true", "false"); } - if (chosen.size() != 3) { + if (chosen.empty()) { return failExample(T, - "K4 example should return 3 vertices in the planar induced subgraph", - "3", to_string(chosen.size())); + "maxPlanarSubgraph(K4) should return a non-empty vertex set", + "non-empty", "empty"); } } -- GitLab