zecsy/tests/zecsy.cpp

15 lines
288 B
C++
Raw Normal View History

2025-02-14 21:35:40 +03:00
#include <catch2/catch_test_macros.hpp>
2025-02-14 21:01:46 +03:00
#define CATCH_CONFIG_MAIN
#include <catch2/catch_all.hpp>
2025-02-14 21:35:40 +03:00
#include "../zecsy.hpp"
2025-02-14 21:01:46 +03:00
2025-02-14 21:35:40 +03:00
using namespace zecsy;
TEST_CASE("Create a single entity and verify its existence")
2025-02-14 21:01:46 +03:00
{
2025-02-14 21:35:40 +03:00
world w;
auto e = w.make_entity();
REQUIRE(w.is_alive(e));
2025-02-14 21:01:46 +03:00
}