1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00
This commit is contained in:
Ivan Savenko
2024-02-13 22:19:24 +02:00
parent 18bbccd167
commit 29860848a5
14 changed files with 80 additions and 81 deletions

View File

@@ -84,8 +84,8 @@ TEST_F(LuaSpellEffectAPITest, DISABLED_ApplicableOnLeftSideOfField)
BattleHex hex(2,2);
JsonNode first;
first.Vector().push_back(JsonNode(hex.hex));
first.Vector().push_back(JsonNode());
first.Vector().emplace_back(hex.hex);
first.Vector().emplace_back();
JsonNode targets;
targets.Vector().push_back(first);

View File

@@ -154,12 +154,12 @@ TEST_F(LuaSpellEffectTest, ApplicableTargetRedirected)
JsonNode first;
first.Vector().push_back(JsonNode(hex1.hex));
first.Vector().push_back(JsonNode(id1));
first.Vector().emplace_back(hex1.hex);
first.Vector().emplace_back(id1);
JsonNode second;
second.Vector().push_back(JsonNode(hex2.hex));
second.Vector().push_back(JsonNode(-1));
second.Vector().emplace_back(hex2.hex);
second.Vector().emplace_back(-1);
JsonNode targets;
targets.Vector().push_back(first);
@@ -193,8 +193,8 @@ TEST_F(LuaSpellEffectTest, ApplyRedirected)
subject->apply(&serverMock, &mechanicsMock, target);
JsonNode first;
first.Vector().push_back(JsonNode(hex1.hex));
first.Vector().push_back(JsonNode(id1));
first.Vector().emplace_back(hex1.hex);
first.Vector().emplace_back(id1);
JsonNode targets;
targets.Vector().push_back(first);