Skip to content

Commit 79206e8

Browse files
committed
fix clippy::approx_constant in tests
1 parent a2fb380 commit 79206e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_std.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,9 @@ fn format() {
10911091
let t2 = format!("{:?}", data.iter().format("--"));
10921092
assert_eq!(t2, ans2);
10931093

1094-
let dataf = [1.1, 2.71828, -22.];
1094+
let dataf = [1.1, 5.71828, -22.];
10951095
let t3 = format!("{:.2e}", dataf.iter().format(", "));
1096-
assert_eq!(t3, "1.10e0, 2.72e0, -2.20e1");
1096+
assert_eq!(t3, "1.10e0, 5.72e0, -2.20e1");
10971097
}
10981098

10991099
#[test]

0 commit comments

Comments
 (0)