From d2e72deeca6e7eac68714d00e253ea459d40b05d Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 28 Aug 2020 12:23:18 +0200 Subject: [PATCH] Fix nickname test Signed-off-by: Deukhoofd --- tests/BattleTests/CreatureTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BattleTests/CreatureTests.cpp b/tests/BattleTests/CreatureTests.cpp index a17697f..b243e6c 100644 --- a/tests/BattleTests/CreatureTests.cpp +++ b/tests/BattleTests/CreatureTests.cpp @@ -33,8 +33,8 @@ TEST_CASE("Get creature variant when unset", "[Library]") { TEST_CASE("Get creature nickname when unset", "[Library]") { auto library = TestLibrary::Get(); - auto creature = CreateCreature(library, "testSpecies1"_cnc, 1).Create(); - REQUIRE(creature->GetNickname() == "testSpecies1"); + auto creature = CreateCreature(library, "testSpecies1"_cnc, 1).WithNickname("foo").Create(); + REQUIRE(creature->GetNickname() == "foo"); delete creature; }