| 43 | } |
| 44 | |
| 45 | static 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 | |
| 54 | TEST_CASE("RowAdjBattler") { |
| 55 | const MockBattle mb; |