Locale-sensitive format is banned.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/solr7787@1691367 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2015-07-16 11:29:55 +00:00
parent 623d6b16b2
commit 4404d92e48
1 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,8 @@
package org.apache.solr.util.hll;
import java.util.Locale;
import org.apache.lucene.util.LuceneTestCase;
import org.junit.Test;
@ -113,11 +115,11 @@ public class BitVectorTest extends LuceneTestCase {
final LongIterator iter = vector.registerIterator();
for(int i=0; i<count; i++) {
assertTrue(String.format("expected more elements: width=%s, count=%s", width, count), iter.hasNext());
assertTrue(String.format(Locale.ROOT, "expected more elements: width=%s, count=%s", width, count), iter.hasNext());
// TODO: fill with a sentinel value
assertEquals(iter.next(), 0);
}
assertFalse(String.format("expected no more elements: width=%s, count=%s", width, count), iter.hasNext());
assertFalse(String.format(Locale.ROOT, "expected no more elements: width=%s, count=%s", width, count), iter.hasNext());
}
// ========================================================================