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

Radioactive fields test allows equality #48121

Merged
merged 2 commits into from
Mar 21, 2021

Conversation

actual-nh
Copy link
Contributor

@actual-nh actual-nh commented Mar 19, 2021

Summary

None

Purpose of change

The radioactive field test is repeatedly failing due to the test being for less-than instead of less-than-or-equal (300 vs 300 turns). Due to test logs not being searchable on either Github or Travis, I am not able to locate some past cases I have seen, but I can locate https://travis-ci.org/github/CleverRaven/Cataclysm-DDA/jobs/763202025 and
https://github.com/CleverRaven/Cataclysm-DDA/pull/48119/checks?check_run_id=2143797637.

Describe the solution

Change < into <= in the radioactive field test comparison. (Also fixes one grammar error.)

Describe alternatives you've considered

I initially had thought of doing this substitution in more of the tests, but decided against it unless similar failures in the others are seen.

Testing

Github and Travis.

Additional context

I am grateful to @wapcaplet for the PR enabling actually seeing what the numbers were. (I suspect that #47512 was another case, for instance, but I don't know for sure without being able to see the numbers.)

Ping: @Aivean, just in case...

The radioactive field test is repeatedly failing due to the test being
for less-than instead of less-than-or-equal (300 vs 300 turns). Due to
test logs not being searchable on either Github or Travis, I am not
able to locate some past cases I have seen, but I can locate
https://travis-ci.org/github/CleverRaven/Cataclysm-DDA/jobs/763202025
and
https://github.com/CleverRaven/Cataclysm-DDA/pull/48119/checks?check_run_id=2143797637.
(I am grateful to wapcaplet for the PR enabling actually seeing what
the numbers were.)
I had been thinking of making all of the less-than turns into
less-than-or-equal turns, but decided against it. Some edits were left
over; this commit removes them.
@wapcaplet wapcaplet added the Code: Tests Measurement, self-control, statistics, balancing. label Mar 19, 2021
@ZhilkinSerg ZhilkinSerg merged commit 446f13c into CleverRaven:master Mar 21, 2021
@actual-nh actual-nh deleted the fields_test_equality branch March 21, 2021 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Tests Measurement, self-control, statistics, balancing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants