2019-10-06 11:50:52 +00:00
|
|
|
#ifdef TESTS_BUILD
|
2020-09-25 10:43:08 +00:00
|
|
|
#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>
|
2019-12-07 12:45:44 +00:00
|
|
|
#include "../TestLibrary/TestLibrary.hpp"
|
2019-10-06 11:50:52 +00:00
|
|
|
|
2020-09-25 10:43:08 +00:00
|
|
|
TEST_CASE("Can Create Attack 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
|
|
|
}
|
|
|
|
|
2020-09-25 10:43:08 +00:00
|
|
|
TEST_CASE("Can Create Item 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
|
|
|
}
|
|
|
|
|
2020-09-25 10:43:08 +00:00
|
|
|
TEST_CASE("Can Create Growth Rate Library") {
|
2019-12-07 12:45:44 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2020-09-25 10:43:08 +00:00
|
|
|
TEST_CASE("Can Create Data 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
|