Skip to content

Commit b29b9b7

Browse files
committed
Prep for asser_eq failure msg format change.
1 parent 65ea42e commit b29b9b7

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)