From: Giles Cope Date: Tue, 20 Jun 2017 22:14:15 +0000 (+0100) Subject: Prep for asser_eq failure msg format change. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~8^2~30^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b29b9b7a3daf1d66db291d50faf1c04e70a82077;p=cargo.git Prep for asser_eq failure msg format change. --- diff --git a/tests/test.rs b/tests/test.rs index c05593d14..6e6faed3f 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -215,10 +215,11 @@ test test_hello ... FAILED failures: ---- test_hello stdout ---- -thread 'test_hello' panicked at 'assertion failed: \ - `(left == right)` (left: \ - `\"hello\"`, right: `\"nope\"`)', src[/]foo.rs:12 -") +thread 'test_hello' panicked at 'assertion failed:[..]") + .with_stdout_contains("[..]`(left == right)`[..]") + .with_stdout_contains("[..]left: `\"hello\"`,[..]") + .with_stdout_contains("[..]right: `\"nope\"`[..]") + .with_stdout_contains("[..]src[/]foo.rs:12[..]") .with_stdout_contains("\ failures: test_hello