We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3996ff commit 199b33fCopy full SHA for 199b33f
library/core/tests/fmt/num.rs
@@ -146,7 +146,7 @@ fn test_format_int_exp_precision() {
146
assert_eq!(format!("{:.1000e}", 1), format!("1.{}e0", "0".repeat(1000)));
147
//test zero precision
148
assert_eq!(format!("{:.0e}", 1), format!("1e0",));
149
- assert_eq!(format!("{:.0e}", 25), format!("3e1",));
+ assert_eq!(format!("{:.0e}", 35), format!("4e1",));
150
151
//test padding with precision (and sign)
152
assert_eq!(format!("{:+10.3e}", 1), " +1.000e0");
0 commit comments