feed junit found and expected in assertMatchesPattern

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@765584 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2009-04-16 11:50:36 +00:00
parent 55c0cc3922
commit 45986b246c
1 changed files with 1 additions and 1 deletions

View File

@ -984,7 +984,7 @@ implements Serializable {
} }
} }
// System.out.println ("matching \""+buff+"\" against pattern \""+pattern+"\""); // 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) private HashMap getScores (ScoreDoc[] hits, Searcher searcher)