Skip to content
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

DPS test cleanup #40073

Merged
merged 3 commits into from
May 2, 2020
Merged

DPS test cleanup #40073

merged 3 commits into from
May 2, 2020

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

Fix a particular test failure for the effective_dps_tests.

When the avatar happened to have particular martial arts active (the one I observed was Taekwondo) it would prevent their weapon having any effect on combat, which caused the "accuracy increases success" test to be nothing more than a coin flip.

Describe the solution

Ensure that clear_character also unsets martial art.

Describe alternatives you've considered

None

Testing

Tests now pass where before they failed.

Additional context

This failure showed up on one of my PRs (#40041, I think).

jbytheway added 3 commits May 2, 2020 06:37
- Capture more values.
- Verify that weapon is wielded.
- Remove some dead code.
Having a martial arts style selected can cause problems for the melee
tests.  Ensure that we don't have one set.
@jbytheway jbytheway changed the title Dps test cleanup DPS test cleanup May 2, 2020
@ZhilkinSerg ZhilkinSerg added Code: Tests Measurement, self-control, statistics, balancing. [C++] Changes (can be) made in C++. Previously named `Code` labels May 2, 2020
Copy link
Contributor

@ifreund ifreund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ifreund ifreund merged commit b4fbce7 into CleverRaven:master May 2, 2020
@jbytheway jbytheway deleted the dps_test_cleanup branch May 3, 2020 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants