ollie314 / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

OrderingComparison.describeMismatchSafely() describes incorrect #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
see Issue 88
I'm very sorry, but my fix was not totaly correct. A fully tested version 
is:

    @Override
    public void describeMismatchSafely(Calendar actual,
            Description mismatchDescription) {
        mismatchDescription.appendValue(frmt.format(actual.getTime()))
                .appendText(" was ").appendText(
                        comparison(actual.compareTo(expected))).appendText
(" ")
                .appendValue(frmt.format(expected.getTime()));
    };

Original issue reported on code.google.com by soma67it...@googlemail.com on 12 Jun 2009 at 12:07

GoogleCodeExporter commented 8 years ago
I believe Issue 88 is now closed.

Original comment by smgfree...@gmail.com on 14 Jun 2009 at 7:10