From 0a424ca79cd460cf1305956f0c19e7797236e4eb Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 18 Jun 2022 16:26:28 -0600 Subject: [PATCH] testqbsp: add a markfaces test to simple_sealed --- qbsp/test_qbsp.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qbsp/test_qbsp.cc b/qbsp/test_qbsp.cc index 7766f52b..ba0836df 100644 --- a/qbsp/test_qbsp.cc +++ b/qbsp/test_qbsp.cc @@ -510,6 +510,14 @@ TEST_CASE("simple_sealed", "[testmaps_q1]") // no bspx lumps CHECK(bspx.empty()); + + // check markfaces + CHECK(bsp.dleafs[0].nummarksurfaces == 0); + CHECK(bsp.dleafs[0].firstmarksurface == 0); + + CHECK(bsp.dleafs[1].nummarksurfaces == 6); + CHECK(bsp.dleafs[1].firstmarksurface == 0); + CHECK_THAT(bsp.dleaffaces, Catch::UnorderedEquals(std::vector{0,1,2,3,4,5})); } TEST_CASE("simple_sealed2", "[testmaps_q1]")