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 static colors having zero values & add test #2269

Merged
merged 2 commits into from
Jan 13, 2020

Conversation

AustinShalit
Copy link
Member

Colors were being initialized before kPrecision was 😢

@sciencewhiz
Copy link
Contributor

Should the test use the equals from the Color class?

@AustinShalit
Copy link
Member Author

It could but if there would be another bug in how Colors are constructed it wouldn't catch it.

@sciencewhiz
Copy link
Contributor

Maybe another test of equals. Because of the rounding, I'm not sure that the equals will work.

@AustinShalit
Copy link
Member Author

I can add another test

@nimrod46
Copy link

nimrod46 commented Jan 13, 2020

Huh, was really confused because of what happend while testing.
Thanks for the quick fix!

@PeterJohnson PeterJohnson merged commit 60d48fe into wpilibsuite:master Jan 13, 2020
@AustinShalit AustinShalit deleted the fixColor branch January 13, 2020 21:52
pjbuterbaugh pushed a commit to pjbuterbaugh/allwpilib that referenced this pull request Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants