CreatureLib/tests/LibraryTests/TestLibraryTests.cpp

37 lines
792 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.cpp"
2019-10-06 11:50:52 +00:00
TEST_CASE("Can Create Species Library", "[Library]") {
auto l = BuildSpeciesLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Attack Library", "[Library]") {
auto l = BuildAttackLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Item Library", "[Library]") {
auto l = BuildItemLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Growthrate Library", "[Library]") {
auto l = BuildGrowthRateLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
TEST_CASE("Can Create Data Library", "[Library]") {
auto l = BuildLibrary();
REQUIRE(l != nullptr);
delete l;
2019-10-06 11:50:52 +00:00
}
#endif