Skip to content

Commit 4733e07

Browse files
committed
Auto merge of #4196 - gilescope:multiline_assert, r=alexcrichton
Multiline assert Found a second location where multiline assert_eq failure breaks a test. This is an extention of #4181.
2 parents d23510c + ef9b838 commit 4733e07

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,11 @@ test test_hello ... FAILED
215215
failures:
216216
217217
---- test_hello stdout ----
218-
<tab>thread 'test_hello' panicked at 'assertion failed: \
219-
`(left == right)` (left: \
220-
`\"hello\"`, right: `\"nope\"`)', src[/]foo.rs:12
221-
")
218+
<tab>thread 'test_hello' panicked at 'assertion failed:[..]")
219+
.with_stdout_contains("[..]`(left == right)`[..]")
220+
.with_stdout_contains("[..]left: `\"hello\"`,[..]")
221+
.with_stdout_contains("[..]right: `\"nope\"`[..]")
222+
.with_stdout_contains("[..]src[/]foo.rs:12[..]")
222223
.with_stdout_contains("\
223224
failures:
224225
test_hello

0 commit comments

Comments
 (0)