Skip to content

Commit 199b33f

Browse files
authored
Use a test value that doesn't depend on the handling of even/odd rounding
1 parent e3996ff commit 199b33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/tests/fmt/num.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn test_format_int_exp_precision() {
146146
assert_eq!(format!("{:.1000e}", 1), format!("1.{}e0", "0".repeat(1000)));
147147
//test zero precision
148148
assert_eq!(format!("{:.0e}", 1), format!("1e0",));
149-
assert_eq!(format!("{:.0e}", 25), format!("3e1",));
149+
assert_eq!(format!("{:.0e}", 35), format!("4e1",));
150150

151151
//test padding with precision (and sign)
152152
assert_eq!(format!("{:+10.3e}", 1), " +1.000e0");

0 commit comments

Comments
 (0)