CreatureLib/tests/LibraryTests/TestLibraryTests.cpp

36 lines
789 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
#include "../../extern/doctest.hpp"
#include "../TestLibrary/TestLibrary.hpp"
2019-10-06 11:50:52 +00:00
TEST_CASE("Can Create Species Library") {
auto l = TestLibrary::BuildSpeciesLibrary();
REQUIRE(l != nullptr);
delete l;
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