Skip to content

Commit

Permalink
(#67) Call describeMismatch on mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Jul 8, 2020
1 parent f361a99 commit c99ed73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ScalarHasValue(final Matcher<T> mtr) {
// @checkstyle IndentationCheck (3 line)
scalar -> mtr.matches(scalar.value()),
desc -> desc.appendText("Scalar with ").appendDescriptionOf(mtr),
(scalar, desc) -> desc.appendValue(scalar.value())
(scalar, desc) -> mtr.describeMismatch(scalar.value(), desc)
);
}
}

0 comments on commit c99ed73

Please sign in to comment.