Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -3,41 +3,41 @@
|
||||
#include "../TestLibrary/TestLibrary.cpp"
|
||||
|
||||
using namespace CreatureLib::Library;
|
||||
TEST_CASE( "Create basic creature", "[Library]" ) {
|
||||
TEST_CASE("Create basic creature", "[Library]") {
|
||||
auto library = GetLibrary();
|
||||
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
|
||||
delete creature;
|
||||
}
|
||||
|
||||
TEST_CASE( "Get creature species", "[Library]" ) {
|
||||
TEST_CASE("Get creature species", "[Library]") {
|
||||
auto library = GetLibrary();
|
||||
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
|
||||
REQUIRE(creature->GetSpecies()->GetName() == "testSpecies1");
|
||||
delete creature;
|
||||
}
|
||||
|
||||
TEST_CASE( "Get creature level", "[Library]" ) {
|
||||
TEST_CASE("Get creature level", "[Library]") {
|
||||
auto library = GetLibrary();
|
||||
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
|
||||
REQUIRE(creature->GetLevel() == 1);
|
||||
delete creature;
|
||||
}
|
||||
|
||||
TEST_CASE( "Get creature variant when unset", "[Library]" ) {
|
||||
TEST_CASE("Get creature variant when unset", "[Library]") {
|
||||
auto library = GetLibrary();
|
||||
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
|
||||
REQUIRE(creature->GetVariant()->GetName() == "default");
|
||||
delete creature;
|
||||
}
|
||||
|
||||
TEST_CASE( "Get creature nickname when unset", "[Library]" ) {
|
||||
TEST_CASE("Get creature nickname when unset", "[Library]") {
|
||||
auto library = GetLibrary();
|
||||
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
|
||||
REQUIRE(creature->GetNickname() == "testSpecies1");
|
||||
delete creature;
|
||||
}
|
||||
|
||||
TEST_CASE( "Get creature stat potentials when unset", "[Library]" ) {
|
||||
TEST_CASE("Get creature stat potentials when unset", "[Library]") {
|
||||
auto library = GetLibrary();
|
||||
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
|
||||
auto potentials = creature->GetStatPotential();
|
||||
@@ -50,7 +50,7 @@ TEST_CASE( "Get creature stat potentials when unset", "[Library]" ) {
|
||||
delete creature;
|
||||
}
|
||||
|
||||
TEST_CASE( "Get creature stat experience when unset", "[Library]" ) {
|
||||
TEST_CASE("Get creature stat experience when unset", "[Library]") {
|
||||
auto library = GetLibrary();
|
||||
auto creature = CreateCreature(library, "testSpecies1", 1).Create();
|
||||
auto experiences = creature->GetStatExperience();
|
||||
|
||||
@@ -4,34 +4,34 @@
|
||||
#include "../../extern/catch.hpp"
|
||||
#include "../TestLibrary/TestLibrary.cpp"
|
||||
|
||||
TEST_CASE( "Can Create Species Library", "[Library]" ) {
|
||||
auto l = BuildSpeciesLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
TEST_CASE("Can Create Species Library", "[Library]") {
|
||||
auto l = BuildSpeciesLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
}
|
||||
|
||||
TEST_CASE( "Can Create Attack Library", "[Library]" ) {
|
||||
auto l = BuildAttackLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
TEST_CASE("Can Create Attack Library", "[Library]") {
|
||||
auto l = BuildAttackLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
}
|
||||
|
||||
TEST_CASE( "Can Create Item Library", "[Library]" ) {
|
||||
auto l = BuildItemLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
TEST_CASE("Can Create Item Library", "[Library]") {
|
||||
auto l = BuildItemLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
}
|
||||
|
||||
TEST_CASE( "Can Create Growthrate Library", "[Library]" ) {
|
||||
auto l = BuildGrowthRateLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
TEST_CASE("Can Create Growthrate Library", "[Library]") {
|
||||
auto l = BuildGrowthRateLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
}
|
||||
|
||||
TEST_CASE( "Can Create Data Library", "[Library]" ) {
|
||||
auto l = BuildLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
TEST_CASE("Can Create Data Library", "[Library]") {
|
||||
auto l = BuildLibrary();
|
||||
REQUIRE(l != nullptr);
|
||||
delete l;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user