We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bacd57a commit 1cf1166Copy full SHA for 1cf1166
library/alloctests/tests/num.rs
@@ -3,9 +3,9 @@ use std::str::FromStr;
3
4
fn assert_nb<Int: ToString + FromStr + Debug + Display + Eq>(value: Int) {
5
let s = value.to_string();
6
- let s2 = format!("{}", value);
+ let s2 = format!("s: {}.", value);
7
8
- assert_eq!(s, s2);
+ assert_eq!(format!("s: {s}."), s2);
9
let Ok(ret) = Int::from_str(&s) else {
10
panic!("failed to convert into to string");
11
};
@@ -49,7 +49,7 @@ int_to_s!(
49
test_i16_to_string,
50
i16,
51
test_i32_to_string,
52
- i32,
+ i32,
53
test_i64_to_string,
54
i64,
55
test_i128_to_string,
0 commit comments