From 442a7d048448f493fd26bb74c2ca5635706f5236 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 24 May 2022 20:04:08 -0600 Subject: [PATCH] testqbsp: add tests for qbsp_angled_brush.map, qbsp_sealing_point_entity_on_outside.map --- qbsp/test_qbsp.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/qbsp/test_qbsp.cc b/qbsp/test_qbsp.cc index b208176e..d2f2f736 100644 --- a/qbsp/test_qbsp.cc +++ b/qbsp/test_qbsp.cc @@ -839,6 +839,23 @@ TEST_CASE("qbsp_func_detail various types", "[testmaps_q1]") { CHECK(CONTENTS_EMPTY == detail_illusionary_mirrorinside_leaf->contents); } +TEST_CASE("qbsp_angled_brush", "[testmaps_q1]") { + const mbsp_t bsp = LoadTestmap("qbsp_angled_brush.map"); + + CHECK_FALSE(map.leakfile); + CHECK(GAME_QUAKE == bsp.loadversion->game->id); + + CHECK(1 == bsp.dmodels.size()); + // tilted cuboid floating in a box room, so shared solid leaf + 6 empty leafs around the cube + CHECK(6 + 1 == bsp.dleafs.size()); +} + +TEST_CASE("qbsp_sealing_point_entity_on_outside", "[testmaps_q1]") { + const mbsp_t bsp = LoadTestmap("qbsp_sealing_point_entity_on_outside.map"); + + CHECK_FALSE(map.leakfile); +} + // q2 testmaps TEST_CASE("detail", "[testmaps_q2]") {