From a604c448c17332cce65f644a2893c2038decd28b Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 13 Jul 2022 00:22:36 -0600 Subject: [PATCH] testqbsp: relax detail_illusionary_intersecting to pass with new tjunc code --- tests/test_qbsp.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_qbsp.cc b/tests/test_qbsp.cc index a6bddac7..7d0ac1d3 100644 --- a/tests/test_qbsp.cc +++ b/tests/test_qbsp.cc @@ -797,9 +797,10 @@ TEST_CASE("detail_illusionary_intersecting", "[testmaps_q1]") REQUIRE(prt.has_value()); // sides: 3*4 = 12 - // top: 3 - // bottom: 3 - CHECK(bsp.dfaces.size() == 18); + // top: 3 (4 with new tjunc code that prefers more faces over 0-area tris) + // bottom: 3 (4 with new tjunc code that prefers more faces over 0-area tris) + CHECK(bsp.dfaces.size() >= 18); + CHECK(bsp.dfaces.size() <= 20); for (auto &face : bsp.dfaces) { CHECK(std::string("{trigger") == Face_TextureName(&bsp, &face));