WriteThemFirst / approvals-java

Approval testing library for Java. Alleviates the burden of hand-writing assertions.
GNU General Public License v3.0
8 stars 4 forks source link

provide more details about the position at which the difference happens #81

Closed tyrcho closed 5 years ago

tyrcho commented 5 years ago

For instance, this error is difficult to fix:

[info]   java.lang.AssertionError: expected: <Success(
[info]   Event(
[info]     "T\ufffdrmilihus Winterthur",
[info]     "https://www.mtgtop8.com/event?e=18427",
[info]     8,
[info]     Sun Jan 28 00:00:00 CET 2018,
[info]     Highlander,
[info]     None
[info]   )
[info] )
[info] > but was: <Success(
[info]   Event(
[info]     "T\ufffdrmilihus Winterthur",
[info]     "https://www.mtgtop8.com/event?e=18427",
[info]     8,
[info]     Sun Jan 28 00:00:00 UTC 2018,
[info]     Highlander,
[info]     None
[info]   )
[info] )>
tyrcho commented 5 years ago

the position of the error would help + some context (a few characters before / after)

tyrcho commented 5 years ago

fixed in 1ccbe00b27df502f590fc670b83798f9b1b1fbf9