-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Move f64::NAN ui tests into library
#78425
Conversation
The automated code formatting check is failing because of the 2-space indentation. Can you apply the formatting suggested by rustfmt (4-space indentation)? |
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.
r=me with the whitespace fixed
library/core/tests/num/nan.rs
Outdated
use core::f64; | ||
let x = "NaN".to_string(); | ||
assert_eq!(format!("{}", f64::NAN), x); | ||
assert_eq!(format!("{:e}", f64::NAN), x); | ||
assert_eq!(format!("{:E}", f64::NAN), x); |
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.
use core::f64; | |
let x = "NaN".to_string(); | |
assert_eq!(format!("{}", f64::NAN), x); | |
assert_eq!(format!("{:e}", f64::NAN), x); | |
assert_eq!(format!("{:E}", f64::NAN), x); | |
use core::f64; | |
let x = "NaN".to_string(); | |
assert_eq!(format!("{}", f64::NAN), x); | |
assert_eq!(format!("{:e}", f64::NAN), x); | |
assert_eq!(format!("{:E}", f64::NAN), x); |
r? @jyn514 |
@bors r+ rollup |
📌 Commit 97d5a1b has been approved by |
Thanks for the PR! |
Will this test actually be run? Doesn't it need |
Oops, good catch! @bors r- |
@bors r+ rollup |
📌 Commit f9b139f has been approved by |
Move f64::NAN ui tests into `library` This is a partial fix of rust-lang#76268. r? `@matklad`
Move f64::NAN ui tests into `library` This is a partial fix of rust-lang#76268. r? ``@matklad``
Rollup of 15 pull requests Successful merges: - rust-lang#76718 (Move Vec UI tests to unit tests when possible) - rust-lang#78093 (Clean up docs for 'as' keyword) - rust-lang#78425 (Move f64::NAN ui tests into `library`) - rust-lang#78465 (Change as_str → to_string in proc_macro::Ident::span() docs) - rust-lang#78584 (Add keyboard handling to the theme picker menu) - rust-lang#78716 (Array trait impl comment/doc fixes) - rust-lang#78727 ((rustdoc) fix test for trait impl display) - rust-lang#78733 (fix a couple of clippy warnings:) - rust-lang#78735 (Simplify the implementation of `get_mut` (no unsafe)) - rust-lang#78738 (Move range in ui test to ops test in library/core) - rust-lang#78739 (Fix ICE on type error in async function) - rust-lang#78742 (make intern_const_alloc_recursive return error) - rust-lang#78756 (Update cargo) - rust-lang#78757 (Improve and clean up some intra-doc links) - rust-lang#78758 (Fixed typo in comment) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This is a partial fix of #76268.
r? @matklad