Skip to content

Commit c3febc0

Browse files
committed
Make "panic did not include expected string" message consistent
Note messages are typically lowercase.
1 parent c28084a commit c3febc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libtest/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ fn calc_result(desc: &TestDesc, task_result: Result<(), Box<dyn Any + Send>>) ->
15361536
if desc.allow_fail {
15371537
TrAllowedFail
15381538
} else {
1539-
TrFailedMsg(format!("Panic did not include expected string '{}'", msg))
1539+
TrFailedMsg(format!("panic did not include expected string '{}'", msg))
15401540
}
15411541
}
15421542
}
@@ -1890,7 +1890,7 @@ mod tests {
18901890
panic!("an error message");
18911891
}
18921892
let expected = "foobar";
1893-
let failed_msg = "Panic did not include expected string";
1893+
let failed_msg = "panic did not include expected string";
18941894
let desc = TestDescAndFn {
18951895
desc: TestDesc {
18961896
name: StaticTestName("whatever"),

0 commit comments

Comments
 (0)