You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using assertNotEquals if the assertion fails, by default, the error message is quite unhelpful.
For instance with the following test (tested on munit version 1.0.0-M10):
test("example test that fails") {
valobtained=42valexpected=42
assertNotEquals(obtained, expected)
}
we obtain: values are the same expected same: 42 was not: 42.
The expected same is a bit contradictory, same for the was not. Maybe something like "values are the same, expected two different values: 42 is equal to 42" would be enough. It's a quick fix in Assertions.scala, I can open a PR if needed.
The text was updated successfully, but these errors were encountered:
Hi,
When using
assertNotEquals
if the assertion fails, by default, the error message is quite unhelpful.For instance with the following test (tested on munit version
1.0.0-M10
):we obtain:
values are the same expected same: 42 was not: 42
.The
expected same
is a bit contradictory, same for thewas not
. Maybe something like "values are the same, expected two different values: 42 is equal to 42" would be enough. It's a quick fix inAssertions.scala
, I can open a PR if needed.The text was updated successfully, but these errors were encountered: