Skip to content

Commit

Permalink
Auto merge of #4196 - gilescope:multiline_assert, r=alexcrichton
Browse files Browse the repository at this point in the history
Multiline assert

Found a second location where multiline assert_eq failure breaks a test.
This is an extention of #4181.
  • Loading branch information
bors committed Jun 21, 2017
2 parents d23510c + ef9b838 commit 4733e07
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,11 @@ test test_hello ... FAILED
failures:
---- test_hello stdout ----
<tab>thread 'test_hello' panicked at 'assertion failed: \
`(left == right)` (left: \
`\"hello\"`, right: `\"nope\"`)', src[/]foo.rs:12
")
<tab>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
Expand Down

0 comments on commit 4733e07

Please sign in to comment.