From c3febc0884d3ca65416562fa5bf440d09772af10 Mon Sep 17 00:00:00 2001 From: varkor Date: Thu, 30 May 2019 21:58:33 +0100 Subject: [PATCH] Make "panic did not include expected string" message consistent Note messages are typically lowercase. --- src/libtest/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 8bd0d74cd1710..810a98e4a014c 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -1536,7 +1536,7 @@ fn calc_result(desc: &TestDesc, task_result: Result<(), Box>) -> if desc.allow_fail { TrAllowedFail } else { - TrFailedMsg(format!("Panic did not include expected string '{}'", msg)) + TrFailedMsg(format!("panic did not include expected string '{}'", msg)) } } } @@ -1890,7 +1890,7 @@ mod tests { panic!("an error message"); } let expected = "foobar"; - let failed_msg = "Panic did not include expected string"; + let failed_msg = "panic did not include expected string"; let desc = TestDescAndFn { desc: TestDesc { name: StaticTestName("whatever"),