File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,15 @@ pub(crate) fn calc_result<'a>(
58
58
} else if let Some ( panic_str) = maybe_panic_str {
59
59
TestResult :: TrFailedMsg ( format ! (
60
60
r#"panic did not contain expected string
61
- panic message: ` {panic_str:?}`,
62
- expected substring: ` {msg:?}` "#
61
+ panic message: {panic_str:?}
62
+ expected substring: {msg:?}"#
63
63
) )
64
64
} else {
65
65
TestResult :: TrFailedMsg ( format ! (
66
66
r#"expected panic with string value,
67
67
found non-string value: `{:?}`
68
- expected substring: `{:?}`"# ,
69
- ( * err) . type_id( ) ,
70
- msg
68
+ expected substring: {msg:?}"# ,
69
+ ( * err) . type_id( )
71
70
) )
72
71
}
73
72
}
Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ fn test_should_panic_bad_message() {
200
200
}
201
201
let expected = "foobar" ;
202
202
let failed_msg = r#"panic did not contain expected string
203
- panic message: ` "an error message"`,
204
- expected substring: ` "foobar"` "# ;
203
+ panic message: "an error message"
204
+ expected substring: "foobar""# ;
205
205
let desc = TestDescAndFn {
206
206
desc : TestDesc {
207
207
name : StaticTestName ( "whatever" ) ,
@@ -238,7 +238,7 @@ fn test_should_panic_non_string_message_type() {
238
238
let failed_msg = format ! (
239
239
r#"expected panic with string value,
240
240
found non-string value: `{:?}`
241
- expected substring: ` "foobar"` "# ,
241
+ expected substring: "foobar""# ,
242
242
TypeId :: of:: <i32 >( )
243
243
) ;
244
244
let desc = TestDescAndFn {
You can’t perform that action at this time.
0 commit comments