truth
truth copied to clipboard
Make Expect throw ComparisonFailure when possible
Currently, it always throws AssertionError
. But if there's only one failure and it's a ComparisonFailure
, we should throw ComparisonFailure
. Arguably we could throw ComparisonFailure
even in the case of multiple failures, at least if only one input is a ComparisonFailure
, though that's potentially confusing.
Arguably we could throw
ComparisonFailure
even in the case of multiple failures, at least if only one input is aComparisonFailure
, though that's potentially confusing.
I forgot that there's MultipleFailuresError
if we move to opentest4j (#333). That might help.
There's also a MultipleFailuresException
in JUnit 4. But it looks like that might be less supported by IDEs than MultipleFailuresError
(which itself might not be heavily supported).