Skip to content

Commit

Permalink
Auto merge of #4181 - gilescope:patch-1, r=alexcrichton
Browse files Browse the repository at this point in the history
Make test less brittle prior to assert_eq failure message format change

PR required for rust-lang/rust#42541 to make assert_eq error message be multi-line. Before implementing this we need to make the current test less brittle.
Not 100% clear on if I need the final [...] or not.
  • Loading branch information
bors committed Jun 19, 2017
2 parents 7787741 + 9569106 commit ae41248
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ fn cargo_bench_failing_test() {
[FINISHED] release [optimized] target(s) in [..]
[RUNNING] target[/]release[/]deps[/]foo-[..][EXE]
thread '[..]' panicked at 'assertion failed: \
`(left == right)` (left: \
`\"hello\"`, right: `\"nope\"`)', src[/]foo.rs:14
[..]
", p.url()))
`(left == right)`[..]", p.url()))
.with_stderr_contains("[..]left: `\"hello\"`[..]")
.with_stderr_contains("[..]right: `\"nope\"`[..]")
.with_stderr_contains("[..]src[/]foo.rs:14")
.with_status(101));
}

Expand Down

0 comments on commit ae41248

Please sign in to comment.