/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/ |
H A D | TestISOLatin1AccentFilter.java | 106 void assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) throws Exception { argument 108 assertEquals(expected, termAtt.toString());
|
H A D | TestASCIIFoldingFilter.java | 1881 // Construct input text and expected output tokens 1890 // Construct the expected output token: the ASCII string to fold to, 1892 StringBuilder expected = new StringBuilder(); 1895 expected.append(foldings[n + 1]); 1897 expectedOutputTokens.add(expected.toString()); 1911 void assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) throws Exception { argument 1913 assertEquals(expected, termAtt.toString());
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | TestStressAdvance.java | 90 private void testOne(TermDocs docs, List<Integer> expected) throws Exception { argument 95 while(upto < expected.size()) { 97 System.out.println(" cycle upto=" + upto + " of " + expected.size()); 100 if (random.nextInt(4) == 1 || upto == expected.size()-1) { 113 final int inc = _TestUtil.nextInt(random, 1, expected.size()-1-upto); 118 if (docs.skipTo(expected.get(upto))) { 124 if (upto == expected.size()) { 131 System.out.println(" expect docID=" + expected.get(upto) + " actual=" + docID); 134 assertEquals(expected.get(upto).intValue(), docID);
|
H A D | TestMaxTermFrequency.java | 40 /* expected maxTermFrequency values for our documents */ 41 ArrayList<Integer> expected = new ArrayList<Integer>(); field in class:TestMaxTermFrequency 72 assertEquals(expected.get(i).intValue(), fooNorms[i] & 0xff); 79 * puts the max-frequency term into expected, to be checked against the norm. 91 expected.add(max);
|
H A D | TestUniqueTermCount.java | 39 /* expected uniqueTermCount values for our documents */ 40 ArrayList<Integer> expected = new ArrayList<Integer>(); field in class:TestUniqueTermCount 71 assertEquals(expected.get(i).intValue(), fooNorms[i] & 0xff); 76 * puts the # unique terms into expected, to be checked against the norm. 88 expected.add(terms.size());
|
H A D | TestIndexWriterUnicode.java | 70 private boolean fillUnicode(char[] buffer, char[] expected, int offset, int count) { argument 83 expected[i] = buffer[i++] = (char) nextInt(0xd800, 0xdc00); 85 expected[i] = buffer[i] = (char) nextInt(0xdc00, 0xe000); 87 expected[i] = buffer[i] = (char) nextInt(0x80); 89 expected[i] = buffer[i] = (char) nextInt(0x80, 0x800); 91 expected[i] = buffer[i] = (char) nextInt(0x800, 0xd800); 93 expected[i] = buffer[i] = (char) nextInt(0xe000, 0xffff); 101 expected[i++] = 0xfffd; 102 expected[i] = buffer[i] = (char) nextInt(0x800, 0xd800); 105 expected[ [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/ |
H A D | TestISOLatin1AccentFilter.java | 106 void assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) throws Exception { argument 108 assertEquals(expected, termAtt.toString());
|
H A D | TestASCIIFoldingFilter.java | 1873 // Construct input text and expected output tokens 1882 // Construct the expected output token: the ASCII string to fold to, 1884 StringBuilder expected = new StringBuilder(); 1887 expected.append(foldings[n + 1]); 1889 expectedOutputTokens.add(expected.toString()); 1903 void assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) throws Exception { argument 1905 assertEquals(expected, termAtt.toString());
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/ |
H A D | TestStressAdvance.java | 89 private void testOne(TermDocs docs, List<Integer> expected) throws Exception { argument 94 while(upto < expected.size()) { 96 System.out.println(" cycle upto=" + upto + " of " + expected.size()); 99 if (random.nextInt(4) == 1 || upto == expected.size()-1) { 112 final int inc = _TestUtil.nextInt(random, 1, expected.size()-1-upto); 117 if (docs.skipTo(expected.get(upto))) { 123 if (upto == expected.size()) { 130 System.out.println(" expect docID=" + expected.get(upto) + " actual=" + docID); 133 assertEquals(expected.get(upto).intValue(), docID);
|
H A D | TestMaxTermFrequency.java | 40 /* expected maxTermFrequency values for our documents */ 41 ArrayList<Integer> expected = new ArrayList<Integer>(); field in class:TestMaxTermFrequency 72 assertEquals(expected.get(i).intValue(), fooNorms[i] & 0xff); 79 * puts the max-frequency term into expected, to be checked against the norm. 91 expected.add(max);
|
H A D | TestUniqueTermCount.java | 39 /* expected uniqueTermCount values for our documents */ 40 ArrayList<Integer> expected = new ArrayList<Integer>(); field in class:TestUniqueTermCount 71 assertEquals(expected.get(i).intValue(), fooNorms[i] & 0xff); 76 * puts the # unique terms into expected, to be checked against the norm. 88 expected.add(terms.size());
|
H A D | TestIndexWriterUnicode.java | 70 private boolean fillUnicode(char[] buffer, char[] expected, int offset, int count) { argument 83 expected[i] = buffer[i++] = (char) nextInt(0xd800, 0xdc00); 85 expected[i] = buffer[i] = (char) nextInt(0xdc00, 0xe000); 87 expected[i] = buffer[i] = (char) nextInt(0x80); 89 expected[i] = buffer[i] = (char) nextInt(0x80, 0x800); 91 expected[i] = buffer[i] = (char) nextInt(0x800, 0xd800); 93 expected[i] = buffer[i] = (char) nextInt(0xe000, 0xffff); 101 expected[i++] = 0xfffd; 102 expected[i] = buffer[i] = (char) nextInt(0x800, 0xd800); 105 expected[ [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/cl2o/ |
H A D | TestCharBlockArray.java | 85 private static void assertEqualsInternal(String msg, StringBuilder expected, CharBlockArray actual) { argument 86 assertEquals(msg, expected.length(), actual.length()); 87 for (int i = 0; i < expected.length(); i++) { 88 assertEquals(msg, expected.charAt(i), actual.charAt(i));
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/fa/ |
H A D | TestPersianNormalizationFilter.java | 61 private void check(final String input, final String expected) throws IOException { argument 66 assertTokenStreamContents(filter, new String[]{expected});
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/payloads/ |
H A D | DelimitedPayloadTokenFilterTest.java | 106 void assertTermEquals(String expected, TokenStream stream, byte[] expectPay) throws Exception { argument 111 assertEquals(expected, termAtt.toString()); 125 void assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt, PayloadAttribute payAtt, byte[] expectPay) throws Exception { argument 128 assertEquals(expected, termAtt.toString());
|
/lucene-3.6.0/lucene/contrib/analyzers/phonetic/src/test/org/apache/lucene/analysis/phonetic/ |
H A D | TestPhoneticFilter.java | 73 String[] expected) throws Exception { 77 assertTokenStreamContents(filter, expected); 72 assertAlgorithm(Encoder encoder, boolean inject, String input, String[] expected) argument
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/spelling/ |
H A D | TestSuggestSpellingConverter.java | 68 public void assertConvertsTo(String text, String expected[]) throws IOException { argument 71 assertTokenStreamContents(ts, expected);
|
/lucene-3.6.0/lucene/contrib/highlighter/src/test/org/apache/lucene/search/vectorhighlight/ |
H A D | BreakIteratorBoundaryScannerTest.java | 51 int expected = TEXT.indexOf("high-performance"); 52 testFindStartOffset(text, start, expected, scanner); 54 expected = TEXT.indexOf(", full"); 55 testFindEndOffset(text, start, expected, scanner); 64 int expected = TEXT.indexOf("It is a"); 65 testFindStartOffset(text, start, expected, scanner); 67 expected = TEXT.indexOf("Apache Lucene is an open source"); 68 testFindEndOffset(text, start, expected, scanner); 77 int expected = TEXT.indexOf("nearly"); 78 testFindStartOffset(text, start, expected, scanne 84 testFindStartOffset(StringBuilder text, int start, int expected, BoundaryScanner scanner) argument 88 testFindEndOffset(StringBuilder text, int start, int expected, BoundaryScanner scanner) argument [all...] |
/lucene-3.6.0/lucene/contrib/icu/src/test/org/apache/lucene/analysis/icu/ |
H A D | TestICUTransformFilter.java | 87 private void checkToken(Transliterator transform, String input, String expected) throws IOException { argument 89 assertTokenStreamContents(ts, new String[] { expected });
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/miscellaneous/ |
H A D | PatternAnalyzerTest.java | 115 * Verify the analyzer analyzes to the expected contents. For PatternAnalyzer, 124 String expected[]) throws IOException { 126 assertAnalyzesTo(analyzer, document, expected); 131 assertTokenStreamContents(ts, expected); 135 assertTokenStreamContents(ts2, expected); 123 check(PatternAnalyzer analyzer, String document, String expected[]) argument
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/ |
H A D | TestPhoneticFilterFactory.java | 133 String[] expected) throws Exception { 141 assertTokenStreamContents(stream, expected); 132 assertAlgorithm(String algName, String inject, String input, String[] expected) argument
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/schema/ |
H A D | LegacyDateFieldTest.java | 50 public void assertToI(String expected, String input) { argument 51 assertEquals("Input: " + input, expected, f.toInternal(input)); 72 public void assertToI(String expected, long input) { argument 73 assertEquals("Input: " + input, expected, f.toInternal(new Date(input))); 85 public void assertItoR(String expected, String input) { argument 86 assertEquals("Input: " + input, expected, f.indexedToReadable(input));
|
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/common/params/ |
H A D | ModifiableSolrParamsTest.java | 117 String[] expected, 120 assertEquals(prefix + "length: ", expected.length, actual.length); 121 for (int i = 0; i < expected.length; ++i) 123 assertEquals(prefix + " index " + i, expected[i], actual[i]); 116 compareArrays(String prefix, String[] expected, String[] actual) argument
|
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/search/sampling/ |
H A D | BaseSampleTestTopK.java | 98 private void assertSampling(List<FacetResult> expected, Query q, Sampler sampler, FacetSearchParams params, boolean complement) throws Exception { argument 104 assertSameResults(expected, sampledResults);
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/ |
H A D | FSTLookupTest.java | 180 private void assertMatchEquals(List<LookupResult> res, String... expected) { argument 185 if (!Arrays.equals(expected, result)) { 186 int colLen = Math.max(maxLen(expected), maxLen(result)); 191 for (int i = 0; i < Math.max(result.length, expected.length); i++) { 193 i < expected.length ? expected[i] : "--",
|