CreatureLib/tests/LibraryTests/TestLibraryTests.cpp

36 lines
835 B
C++
Raw Normal View History

2019-10-06 11:50:52 +00:00
#ifdef TESTS_BUILD
#define CATCH_CONFIG_MAIN
#include "../../extern/catch.hpp"
#include "../TestLibrary/TestLibrary.hpp"
2019-10-06 11:50:52 +00:00
TEST_CASE("Can Create Species Library", "[Library]") {
auto l = TestLibrary::BuildSpeciesLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Attack Library", "[Library]") {
auto l = TestLibrary::BuildAttackLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Item Library", "[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", "[Library]") {
auto l = TestLibrary::BuildGrowthRateLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Data Library", "[Library]") {
auto l = TestLibrary::Get();
REQUIRE(l != nullptr);
2019-10-06 11:50:52 +00:00
}
#endif