Skip to content

Commit

Permalink
fix #712: improve assertNotEquals failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
ekans authored and tgodzik committed Dec 19, 2023
1 parent 1dc63bc commit dda1ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion munit/shared/src/main/scala/munit/Assertions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ trait Assertions extends MacroCompat.CompileErrorMacro {
StackTraces.dropInside {
if (compare.isEqual(obtained, expected)) {
failComparison(
s"${munitPrint(clue)} expected same: $expected was not: $obtained",
s"${munitPrint(clue)}, expected 2 different values: $expected is equal to $obtained",
obtained,
expected
)
Expand Down

0 comments on commit dda1ccc

Please sign in to comment.