CreatureLib/tests/LibraryTests/TestLibraryTests.cpp

30 lines
639 B
C++
Raw Normal View History

2019-10-06 11:50:52 +00:00
#ifdef TESTS_BUILD
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
2019-10-06 11:50:52 +00:00
2022-02-05 12:59:15 +00:00
#include <doctest.h>
#include "../TestLibrary/TestLibrary.hpp"
2019-10-06 11:50:52 +00:00
TEST_CASE("Can Create Attack Library") {
auto l = TestLibrary::BuildAttackLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Item Library") {
auto l = TestLibrary::BuildItemLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Growth Rate Library") {
auto l = TestLibrary::BuildGrowthRateLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Data Library") {
auto l = TestLibrary::Get();
REQUIRE(l != nullptr);
2019-10-06 11:50:52 +00:00
}
#endif