Searched defs:expected (Results 1 - 25 of 58) sorted by relevance

123

/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/
H A DTestISOLatin1AccentFilter.java106 void assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) throws Exception { argument
108 assertEquals(expected, termAtt.toString());
H A DTestASCIIFoldingFilter.java1881 // 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 DTestStressAdvance.java90 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 DTestMaxTermFrequency.java40 /* 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 DTestUniqueTermCount.java39 /* 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 DTestIndexWriterUnicode.java70 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 DTestISOLatin1AccentFilter.java106 void assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) throws Exception { argument
108 assertEquals(expected, termAtt.toString());
H A DTestASCIIFoldingFilter.java1873 // 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 DTestStressAdvance.java89 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 DTestMaxTermFrequency.java40 /* 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 DTestUniqueTermCount.java39 /* 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 DTestIndexWriterUnicode.java70 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 DTestCharBlockArray.java85 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 DTestPersianNormalizationFilter.java61 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 DDelimitedPayloadTokenFilterTest.java106 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 DTestPhoneticFilter.java73 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 DTestSuggestSpellingConverter.java68 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 DBreakIteratorBoundaryScannerTest.java51 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 DTestICUTransformFilter.java87 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 DPatternAnalyzerTest.java115 * 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 DTestPhoneticFilterFactory.java133 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 DLegacyDateFieldTest.java50 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 DModifiableSolrParamsTest.java117 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 DBaseSampleTestTopK.java98 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 DFSTLookupTest.java180 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] : "--",

Completed in 100 milliseconds

123