Uh oh!
There was an error while loading. Please reload this page.
Tests for f32/f64 float methods - #22984
Conversation
rust-highfive
commented
Mar 3, 2015
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
huonw
commented
Mar 3, 2015
Wow! |
carols10cents
commented
Mar 3, 2015
Is that a good wow or a bad wow? :) |
huonw
commented
Mar 3, 2015
Definitely a good one! The patch is very comprehensive. |
carols10cents
commented
Mar 3, 2015
Yay!!!! Thank you :) |
There was a problem hiding this comment.
Hm... not a problem with this patch at all, since this behaviour is documented, but I'm unsure if considering zero to be positive is a great idea. (I filed #22985.)
Maybe you ensure that all the f32/f64 tests of this nature test both is_positive and is_negative, though. I.e. check they're false when they should be, as well as checking that they're true when they should be. (Including the NaN/one ones.)
huonw
commented
Mar 3, 2015
A few minor comments (I've only put them on |
carols10cents
commented
Mar 4, 2015
@huonw Thank you so much for the thorough review! 😻 I added new commits to address your comments; please let me know if you'd like me to squash them down into 902309a :) |
huonw
commented
Mar 4, 2015
Looks good; squashing would be great. |
carols10cents
commented
Mar 4, 2015
Done!! :) |
bors
commented
Mar 6, 2015
☔ The latest upstream changes (presumably #23031) made this pull request unmergeable. Please resolve the merge conflicts. |
I was having trouble figuring out which functions had tests and which didn't. This commit is just moving tests around and does not change anything.
carols10cents
commented
Mar 6, 2015
@bors thanks for letting me know! ❤️ good bot. |
steveklabnik
commented
Mar 8, 2015
bors
commented
Mar 8, 2015
Building on #22076, I've added some tests for stable methods in f32 and f64 that didn't have any before. Please let me know if there are any improvements I can make, and I am happy to make them! 📬
Building on rust-lang#22076, I've added some tests for stable methods in f32 and f64 that didn't have any before. Please let me know if there are any improvements I can make, and I am happy to make them! 📬
Building on #22076, I've added some tests for stable methods in f32 and f64 that didn't have any before.
Please let me know if there are any improvements I can make, and I am happy to make them! 📬