Fix nickname test

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-08-28 12:23:18 +02:00
parent b096fb9533
commit d2e72deeca
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ TEST_CASE("Get creature variant when unset", "[Library]") {
TEST_CASE("Get creature nickname when unset", "[Library]") { TEST_CASE("Get creature nickname when unset", "[Library]") {
auto library = TestLibrary::Get(); auto library = TestLibrary::Get();
auto creature = CreateCreature(library, "testSpecies1"_cnc, 1).Create(); auto creature = CreateCreature(library, "testSpecies1"_cnc, 1).WithNickname("foo").Create();
REQUIRE(creature->GetNickname() == "testSpecies1"); REQUIRE(creature->GetNickname() == "foo");
delete creature; delete creature;
} }