diff --git a/test/test.h b/test/test.h index bf3e0b004..3949bdb49 100644 --- a/test/test.h +++ b/test/test.h @@ -168,9 +168,9 @@ s32 MgbaPrintf_(const char *fmt, ...); #define PARAMETRIZE if (gFunctionTestRunnerState->parameters++ == gFunctionTestRunnerState->runParameter) #define TO_DO \ - Test_ExpectedResult(TEST_RESULT_TODO) - -#define EXPECT_TO_DO \ - Test_ExitWithResult(TEST_RESULT_TODO, "%s:%d: EXPECT_TO_DO", gTestRunnerState.test->filename, __LINE__) + do { \ + Test_ExpectedResult(TEST_RESULT_TODO); \ + Test_ExitWithResult(TEST_RESULT_TODO, "%s:%d: EXPECT_TO_DO", gTestRunnerState.test->filename, __LINE__); \ + } while (0) #endif diff --git a/test/test_battle.h b/test/test_battle.h index bd8061f42..607589eea 100644 --- a/test/test_battle.h +++ b/test/test_battle.h @@ -651,12 +651,9 @@ extern struct BattleTestRunnerState *gBattleTestRunnerState; /* Test */ #define TO_DO_BATTLE_TEST(_name) \ - SINGLE_BATTLE_TEST("TODO: " _name) \ + TEST("TODO: " _name) \ { \ TO_DO; \ - GIVEN { PLAYER(SPECIES_WOBBUFFET); OPPONENT(SPECIES_WOBBUFFET); } \ - WHEN { TURN { } } \ - THEN { EXPECT_TO_DO; } \ } #define SINGLE_BATTLE_TEST(_name, ...) \