From 42305cd3b9942ba07fbae85a855ad23f1ad044a2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Feb 2023 00:53:04 +0100 Subject: kill lqt --- test/bbox.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 test/bbox.cpp (limited to 'test/bbox.cpp') diff --git a/test/bbox.cpp b/test/bbox.cpp deleted file mode 100644 index 9ffd6122..00000000 --- a/test/bbox.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include "app.hpp" -#include "src/chunk.hpp" -#include "src/collision.hpp" -#include -#include - -namespace floormat { - -void test_app::test_bbox() -{ - auto c = make_test_chunk(); - - constexpr auto pos1 = sTILE_SIZE2 * (TILE_MAX_DIM/2) - Vector2s(0, sTILE_SIZE2[1]/2); - constexpr auto b1 = Vector4s{pos1[0], pos1[1], sTILE_SIZE2[0], sTILE_SIZE2[1]}; - constexpr auto pos2 = Vector2s(iTILE_SIZE2 * (Vector2i(TILE_MAX_DIM/2) - Vector2i(-1, -1)) - Vector2i(0, iTILE_SIZE[1]/2)); - constexpr auto b2 = Vector4s{pos2[0], pos2[1], usTILE_SIZE2[0], usTILE_SIZE2[1]}; - { - auto q1 = c.query_collisions(b1, collision::move); - fm_assert(q1); - auto q2 = c.query_collisions(b2, collision::move); - fm_assert(!q2); - } -} - -} // namespace floormat -- cgit v1.2.3