-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Unify and deduplicate From<bool> float tests #150611
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
base: main
Are you sure you want to change the base?
Unify and deduplicate From<bool> float tests #150611
Conversation
This comment has been minimized.
This comment has been minimized.
Unify the From<bool> tests from f16.rs and f128.rs into a single float_test! in mod.rs.
3f94742 to
357ec46
Compare
|
@rustbot reroll |
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.
| assert_biteq!(f16::from(u8::MAX), 255.0); | ||
| assert_biteq!(f16::from(i8::MIN), -128.0); | ||
| assert_biteq!(f16::from(42_i8), 42.0); | ||
| assert_biteq!(f16::from(i8::MAX), 127.0); |
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.
Why only the bools, and not the rest of the cases here?
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.
Probably because they want to know whether they are on the right track, given this is their first PR here.
Are you saying they are on the right track and should add more?
|
Reminder, once the PR becomes ready for a review, use |
|
I believe this will be superseded by #148206 |
cc #141726
Unify the From tests from f16.rs and f128.rs into a single float_test! in mod.rs.