MCPcopy Create free account
hub / github.com/EasyRPG/Player / testRowAdjBattler

Function testRowAdjBattler

tests/algo.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static void testRowAdjBattler(const Game_Battler& battler, bool offense, bool bug,
46 bool none, bool back, bool surround, bool pincers) {
47 REQUIRE_EQ(none, Algo::IsRowAdjusted(battler, lcf::rpg::System::BattleCondition_none, offense, bug));
48 REQUIRE_EQ(none, Algo::IsRowAdjusted(battler, lcf::rpg::System::BattleCondition_initiative, offense, bug));
49 REQUIRE_EQ(back, Algo::IsRowAdjusted(battler, lcf::rpg::System::BattleCondition_back, offense, bug));
50 REQUIRE_EQ(surround, Algo::IsRowAdjusted(battler, lcf::rpg::System::BattleCondition_surround, offense, bug));
51 REQUIRE_EQ(pincers, Algo::IsRowAdjusted(battler, lcf::rpg::System::BattleCondition_pincers, offense, bug));
52}
53
54TEST_CASE("RowAdjBattler") {
55 const MockBattle mb;

Callers 1

algo.cppFile · 0.85

Calls 1

IsRowAdjustedFunction · 0.85

Tested by

no test coverage detected