mirror of https://github.com/apache/lucene.git
LUCENE-8756: fix precommit failure
This commit is contained in:
parent
1b15f6e037
commit
c05501e5b2
|
@ -23,6 +23,7 @@ import java.util.Arrays;
|
|||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.lucene.analysis.Analyzer;
|
||||
|
@ -494,7 +495,7 @@ public class TestMoreLikeThis extends LuceneTestCase {
|
|||
.sum();
|
||||
|
||||
// mlt should use the custom frequencies provided by the analyzer so "lucene|10" should be boosted more than "lucene|1"
|
||||
assertTrue(String.format("%s should be grater than %s", boost10, boost1), boost10 > boost1);
|
||||
assertTrue(String.format(Locale.ROOT, "%s should be grater than %s", boost10, boost1), boost10 > boost1);
|
||||
}
|
||||
|
||||
// TODO: add tests for the MoreLikeThisQuery
|
||||
|
|
Loading…
Reference in New Issue