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

fix: false positives on opposition #17

Merged
merged 1 commit into from
Apr 23, 2021
Merged

Conversation

Deuchnord
Copy link
Member

Q A
Bug fix? yes
New feature? no
Related issues Fix #7
Has BC-break no
License CeCILL-C

Fixing an issue that made false opposition happen sometimes.
The issue was due to the angle becoming negative at some point, triggering the angle > 180 condition when it is not expected.
The fix consists in adding a second condition to check that this angle is really > 180 before actually adding the opposition to the list to return.

@Deuchnord Deuchnord self-assigned this Apr 23, 2021
@Deuchnord Deuchnord added the bug Something isn't working label Apr 23, 2021
@coveralls
Copy link

coveralls commented Apr 23, 2021

Pull Request Test Coverage Report for Build 778504302

  • 12 of 14 (85.71%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.8%) to 81.299%

Changes Missing Coverage Covered Lines Changed/Added Lines %
kosmorrolib/events.py 12 14 85.71%
Totals Coverage Status
Change from base Build 777035616: 0.8%
Covered Lines: 344
Relevant Lines: 408

💛 - Coveralls

@Deuchnord Deuchnord force-pushed the fix7-opposition-false-positive branch from 14cb359 to bf7d588 Compare April 23, 2021 17:30
@Deuchnord Deuchnord merged commit 03f0c57 into main Apr 23, 2021
@Deuchnord Deuchnord deleted the fix7-opposition-false-positive branch April 23, 2021 18:24
@Deuchnord Deuchnord mentioned this pull request Jan 8, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive on oppositions
2 participants