2019-10-06 11:50:52 +00:00
|
|
|
#ifdef TESTS_BUILD
|
|
|
|
#define CATCH_CONFIG_MAIN
|
|
|
|
|
|
|
|
#include "../../extern/catch.hpp"
|
2019-12-07 12:45:44 +00:00
|
|
|
#include "../TestLibrary/TestLibrary.hpp"
|
2019-10-06 11:50:52 +00:00
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
TEST_CASE("Can Create Species Library", "[Library]") {
|
2019-12-07 12:45:44 +00:00
|
|
|
auto l = TestLibrary::BuildSpeciesLibrary();
|
2019-11-28 11:55:22 +00:00
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
2019-10-06 11:50:52 +00:00
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
TEST_CASE("Can Create Attack Library", "[Library]") {
|
2019-12-07 12:45:44 +00:00
|
|
|
auto l = TestLibrary::BuildAttackLibrary();
|
2019-11-28 11:55:22 +00:00
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
2019-10-06 11:50:52 +00:00
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
TEST_CASE("Can Create Item Library", "[Library]") {
|
2019-12-07 12:45:44 +00:00
|
|
|
auto l = TestLibrary::BuildItemLibrary();
|
2019-11-28 11:55:22 +00:00
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
2019-10-06 11:50:52 +00:00
|
|
|
}
|
|
|
|
|
2019-12-07 12:45:44 +00:00
|
|
|
TEST_CASE("Can Create Growth Rate Library", "[Library]") {
|
|
|
|
auto l = TestLibrary::BuildGrowthRateLibrary();
|
2019-11-28 11:55:22 +00:00
|
|
|
REQUIRE(l != nullptr);
|
|
|
|
delete l;
|
2019-10-06 11:50:52 +00:00
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
TEST_CASE("Can Create Data Library", "[Library]") {
|
2019-12-07 12:45:44 +00:00
|
|
|
auto l = TestLibrary::Get();
|
2019-11-28 11:55:22 +00:00
|
|
|
REQUIRE(l != nullptr);
|
2019-10-06 11:50:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|