diff --git a/src/test/org/apache/lucene/search/TestSort.java b/src/test/org/apache/lucene/search/TestSort.java index 2c7474a2325..b48090ace3a 100644 --- a/src/test/org/apache/lucene/search/TestSort.java +++ b/src/test/org/apache/lucene/search/TestSort.java @@ -984,7 +984,7 @@ implements Serializable { } } // System.out.println ("matching \""+buff+"\" against pattern \""+pattern+"\""); - assertTrue (Pattern.compile(pattern).matcher(buff.toString()).matches()); + assertTrue ("found:" + buff + " expected:" + pattern, Pattern.compile(pattern).matcher(buff.toString()).matches()); } private HashMap getScores (ScoreDoc[] hits, Searcher searcher)