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

Function testRowAdj

tests/algo.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6TEST_SUITE_BEGIN("Algo");
7
8static void testRowAdj(lcf::rpg::SaveActor::RowType row, bool offense, bool none, bool back, bool surround, bool pincers) {
9 REQUIRE_EQ(none, Algo::IsRowAdjusted(row, lcf::rpg::System::BattleCondition_none, offense));
10 REQUIRE_EQ(none, Algo::IsRowAdjusted(row, lcf::rpg::System::BattleCondition_initiative, offense));
11 REQUIRE_EQ(back, Algo::IsRowAdjusted(row, lcf::rpg::System::BattleCondition_back, offense));
12 REQUIRE_EQ(surround, Algo::IsRowAdjusted(row, lcf::rpg::System::BattleCondition_surround, offense));
13 REQUIRE_EQ(pincers, Algo::IsRowAdjusted(row, lcf::rpg::System::BattleCondition_pincers, offense));
14}
15
16
17TEST_CASE("RowAdj") {

Callers 1

algo.cppFile · 0.85

Calls 1

IsRowAdjustedFunction · 0.85

Tested by

no test coverage detected