mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 07:03:40 +01:00
Simplify TO_DO_BATTLE_TEST
This commit is contained in:
parent
3e6f499517
commit
c9a2c86d78
@ -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
|
||||
|
@ -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, ...) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user