Searched refs:expected (Results 1 - 25 of 128) sorted by relevance

123456

/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/
H A DTestMappingCharFilterFactory.java31 catch( RuntimeException expected ){}
44 catch( RuntimeException expected ){}
50 catch( NumberFormatException expected ){}
H A DTestBufferedTokenStream.java62 final String expected = "How now Q B brown A cow B like Q B thing?";
65 assertTokenStreamContents(ts, expected.split("\\s"));
70 final String expected = "How now A A B brown A cow B like A A B thing?";
73 assertTokenStreamContents(ts, expected.split("\\s"));
/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...]
H A DSimpleBoundaryScannerTest.java37 int expected = TEXT.indexOf("high-performance");
38 assertEquals(expected, scanner.findStartOffset(text, start));
41 expected = TEXT.indexOf("Apache");
42 assertEquals(expected, scanner.findStartOffset(text, start));
56 int expected = TEXT.indexOf("\ntext");
57 assertEquals(expected, scanner.findEndOffset(text, start));
/lucene-3.6.0/solr/test-framework/src/java/org/apache/solr/
H A DJSONTestUtil.java47 public static String match(String path, String input, String expected) throws Exception { argument
48 return match(path, input, expected, DEFAULT_DELTA);
56 public static String matchObj(String path, Object input, Object expected) throws Exception { argument
57 return matchObj(path,input,expected, DEFAULT_DELTA);
62 * @param pathAndExpected JSON path expression + '==' + expected value
68 String expected = pos>=0 ? pathAndExpected.substring(pos+2) : pathAndExpected;
69 return match(path, input, expected, delta);
75 * @param expected expected value of path
78 public static String match(String path, String input, String expected, doubl argument
90 matchObj(String path, Object input, Object expected, double delta) argument
110 public Object expected; field in class:CollectionTester
158 match(Object expected) argument
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestCompoundFile.java84 IndexInput expected,
88 assertNotNull(msg + " null expected", expected);
90 assertEquals(msg + " length", expected.length(), test.length());
91 assertEquals(msg + " position", expected.getFilePointer(),
97 long remainder = expected.length() - expected.getFilePointer();
100 expected.readBytes(expectedBuffer, 0, readLen);
110 IndexInput expected,
115 if(seekTo >= 0 && seekTo < expected
83 assertSameStreams(String msg, IndexInput expected, IndexInput test) argument
109 assertSameStreams(String msg, IndexInput expected, IndexInput actual, long seekTo) argument
125 assertSameSeekBehavior(String msg, IndexInput expected, IndexInput actual) argument
156 assertEqualArrays(String msg, byte[] expected, byte[] test, int start, int len) argument
[all...]
H A DTestLongPostings.java172 int expected = docID+1;
174 if (expected == NUM_DOCS) {
175 expected = Integer.MAX_VALUE;
177 } else if (isS1.get(expected) == doS1) {
180 expected++;
185 assertEquals(Integer.MAX_VALUE, expected);
195 assertEquals(expected, docID);
219 int expected = targetDocID;
221 if (expected == NUM_DOCS) {
222 expected
[all...]
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 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...]
H A DTestPrefixCodedTerms.java62 Iterator<Term> expected = terms.iterator();
64 assertTrue(expected.hasNext());
65 assertEquals(expected.next(), t);
67 assertFalse(expected.hasNext());
128 Iterator<Term> expected = superSet.iterator();
131 assertTrue(expected.hasNext());
132 assertEquals(expected.next(), actual.next());
134 assertFalse(expected.hasNext());
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestCompoundFile.java84 IndexInput expected,
88 assertNotNull(msg + " null expected", expected);
90 assertEquals(msg + " length", expected.length(), test.length());
91 assertEquals(msg + " position", expected.getFilePointer(),
97 long remainder = expected.length() - expected.getFilePointer();
100 expected.readBytes(expectedBuffer, 0, readLen);
110 IndexInput expected,
115 if(seekTo >= 0 && seekTo < expected
83 assertSameStreams(String msg, IndexInput expected, IndexInput test) argument
109 assertSameStreams(String msg, IndexInput expected, IndexInput actual, long seekTo) argument
125 assertSameSeekBehavior(String msg, IndexInput expected, IndexInput actual) argument
156 assertEqualArrays(String msg, byte[] expected, byte[] test, int start, int len) argument
[all...]
H A DTestLongPostings.java171 int expected = docID+1;
173 if (expected == NUM_DOCS) {
174 expected = Integer.MAX_VALUE;
176 } else if (isS1.get(expected) == doS1) {
179 expected++;
184 assertEquals(Integer.MAX_VALUE, expected);
194 assertEquals(expected, docID);
218 int expected = targetDocID;
220 if (expected == NUM_DOCS) {
221 expected
[all...]
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 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...]
H A DTestPrefixCodedTerms.java62 Iterator<Term> expected = terms.iterator();
64 assertTrue(expected.hasNext());
65 assertEquals(expected.next(), t);
67 assertFalse(expected.hasNext());
128 Iterator<Term> expected = superSet.iterator();
131 assertTrue(expected.hasNext());
132 assertEquals(expected.next(), actual.next());
134 assertFalse(expected.hasNext());
/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));
H A DDateFieldTest.java65 public void assertParseMath(long expected, String input) { argument
67 assertEquals("Input: "+input, expected, f.parseMath(d, input).getTime());
84 public void assertToObject(long expected, String input) throws Exception { argument
85 assertEquals("Input: "+input, expected, f.toObject(input).getTime());
180 protected void assertFormat(final String expected, final long millis) { argument
181 assertEquals(expected, f.formatDate(new Date(millis)));
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/parser/
H A DParseException.java78 * values) that is expected at this point of the parse.
103 StringBuffer expected = new StringBuffer();
110 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
113 expected.append("...");
115 expected.append(eol).append(" ");
138 retval += expected.toString();
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/
H A DParseException.java78 * values) that is expected at this point of the parse.
103 StringBuffer expected = new StringBuffer();
110 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
113 expected.append("...");
115 expected.append(eol).append(" ");
138 retval += expected.toString();
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/
H A DTestByteBlockPool.java51 BytesRef expected = new BytesRef();
54 expected.copyChars(string);
55 actual.grow(expected.length);
56 actual.length = expected.length;
58 assertEquals(expected, actual);
64 // expected - read past EOF
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/demohtml/
H A DParseException.java78 * values) that is expected at this point of the parse.
103 StringBuffer expected = new StringBuffer();
110 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
113 expected.append("...");
115 expected.append(eol).append(" ");
138 retval += expected.toString();
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/
H A DParseException.java78 * values) that is expected at this point of the parse.
101 StringBuffer expected = new StringBuffer();
108 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
111 expected.append("...");
113 expected.append(eol).append(" ");
136 retval += expected.toString();
/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/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/analyzers/common/src/test/org/apache/lucene/analysis/ar/
H A DTestArabicNormalizationFilter.java91 private void check(final String input, final String expected) throws IOException { argument
94 assertTokenStreamContents(filter, new String[]{expected});

Completed in 118 milliseconds

123456