diff options
Diffstat (limited to 'test/tile-iter.cpp')
-rw-r--r-- | test/tile-iter.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/tile-iter.cpp b/test/tile-iter.cpp deleted file mode 100644 index 086fd3ce..00000000 --- a/test/tile-iter.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "app.hpp" -#include "src/chunk.hpp" -#include "src/world.hpp" -#include "src/tile-iterator.hpp" -namespace floormat { - -static inline bool always_false() -{ - volatile bool ret = false; - return ret; -} - -void test_app::test_tile_iter() // NOLINT(readability-function-size) -{ - if (always_false()) - { - world w; - const chunk c{w, {}}; - for ([[maybe_unused]] const auto& [x, k, pt] : c) - static_assert(std::is_same_v<decltype(x), const tile_proto>); - for ([[maybe_unused]] const auto [x, k, pt] : c) - static_assert(std::is_same_v<decltype(x), const tile_proto>); - for ([[maybe_unused]] auto [x, k, pt] : c) - static_assert(std::is_same_v<decltype(x), tile_proto>); - } - if (always_false()) - { - world w; - chunk c{w, {}}; - for ([[maybe_unused]] auto [x, k, pt] : c) - static_assert(std::is_same_v<decltype(x), tile_ref>); - for ([[maybe_unused]] const auto [x, k, pt] : c) - static_assert(std::is_same_v<decltype(x), const tile_ref>); - } -} - -} // namespace floormat |