-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Add a test suite for Rect2 and Rect2i #43514
Conversation
2ecd88c
to
ad2d988
Compare
I added tests for |
Style issue after recent change to file_format.sh. |
ad2d988
to
7cb21c2
Compare
Thanks! |
CHECK_MESSAGE( | ||
Math::is_equal_approx(Rect2i(0, 100, -1280, 720).get_area(), -921'600), | ||
"get_area() should return the expected value."); | ||
CHECK_MESSAGE( | ||
Math::is_zero_approx(Rect2i(0, 100, 0, 720).get_area()), | ||
"get_area() should return the expected value."); |
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.
Heads up for the future: You don't need to use is_equal_approx
and is_zero_approx
to compare integers :)
No description provided.