-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear body tests #4685
Clear body tests #4685
Conversation
I am once again unsure of why this is failing, but I've also discovered that both Full Metal Body and White Smoke are missing their tests, so even once this is fully sorted out don't merge it yet, just let me know that it's good to go and I'll copy paste all the tests over and make the necessary changes to cover both of those abilities as well :) EDIT: It's the Superpower assumption that's failing, EDIT EDIT: Needs to be MoveHasAdditionalEffectSelf |
Ready for re-review! |
test/battle/ability/clear_body.c
Outdated
GIVEN { | ||
ASSUME(gMovesInfo[MOVE_SPECTRAL_THIEF].additionalEffects->moveEffect == MOVE_EFFECT_SPECTRAL_THIEF); | ||
ASSUME(gMovesInfo[MOVE_AGILITY].effect == EFFECT_SPEED_UP_2); | ||
PLAYER(SPECIES_WOBBUFFET) { Speed(4); Moves(MOVE_SPECTRAL_THIEF, MOVE_CELEBRATE); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's weird...
Feedback incorporated! Let me know if it's good before merging it so I can paste the tests over to Full Metal Body and White Smoke as well :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most tests are missing an ability check. Whether if it goes of or not.
Regarding the test that needs the moves specified. I would leave a comment for now. We shouldn't stall the PR because of it.
/Edit Duke on discord discovered that the test passes fine with Metang and no moves. It could be a problem with Beldum being illiterate
What d'you mean by ability check, like d'you want me to parametrize the ability? Would you prefer I leave that specific test as is with Beldum and a comment, or change Beldum for Metang? Or change to Metang throughout? |
I think it is fine if you just replace Beldum with Metang without a comment
No, an ability check like like this inside
and does not
|
Ready for re-review, again let me know if this is good before merging so I can copy the tests over to the other two abilities :) |
Looks good, Thx! @AsparagusEduardo could we get a re-review? |
@AlexOn1ine just missing yours |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry Pawkkie, I found a couple more things 😅
I only made comments for two checks but it applies to some of the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thx. Sorry that you had to do so many revisions.
Description
Wrote missing Clear Body tests.
This includes:
Discord contact info
@Pawkkie