testqbsp: add a markfaces test to simple_sealed

This commit is contained in:
Eric Wasylishen 2022-06-18 16:26:28 -06:00
parent 3492ef2b9e
commit 0a424ca79c
1 changed files with 8 additions and 0 deletions

View File

@ -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<uint32_t>{0,1,2,3,4,5}));
}
TEST_CASE("simple_sealed2", "[testmaps_q1]")