From fc74a7d4bd3692741ce8c7ddaac2b3940f1cc602 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 5 Jun 2020 18:10:58 +0200 Subject: [PATCH] Fixed broken test. --- tests/BattleTests/ScriptTests/ScriptSourceTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/BattleTests/ScriptTests/ScriptSourceTest.cpp b/tests/BattleTests/ScriptTests/ScriptSourceTest.cpp index 6636dd0..292559f 100644 --- a/tests/BattleTests/ScriptTests/ScriptSourceTest.cpp +++ b/tests/BattleTests/ScriptTests/ScriptSourceTest.cpp @@ -44,8 +44,7 @@ protected: TEST_CASE("Script source with unset script ptr.", "[Battling, Scripting]") { auto source = ScriptSourceWithScriptPtr(); auto scripts = source.GetScriptIterator(); - auto first = scripts.GetNext(); - CHECK(first == nullptr); + REQUIRE_FALSE(scripts.HasNext()); } TEST_CASE("Script source with script ptr being set.", "[Battling, Scripting]") {