/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/client/solrj/util/ |
H A D | ClientUtilsTest.java | 31 assertEquals( "nochange", ClientUtils.escapeQueryChars( "nochange" ) ); 32 assertEquals( "12345", ClientUtils.escapeQueryChars( "12345" ) ); 33 assertEquals( "with\\ space", ClientUtils.escapeQueryChars( "with space" ) ); 34 assertEquals( "h\\:ello\\!", ClientUtils.escapeQueryChars( "h:ello!" ) ); 35 assertEquals( "h\\~\\!", ClientUtils.escapeQueryChars( "h~!" ) );
|
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/test/org/apache/lucene/analysis/ja/util/ |
H A D | TestToStringUtil.java | 24 assertEquals("noun-suffix-verbal", ToStringUtil.getPOSTranslation("名詞-接尾-サ変接続")); 28 assertEquals("majan", ToStringUtil.getRomanization("マージャン")); 29 assertEquals("uroncha", ToStringUtil.getRomanization("ウーロンチャ")); 30 assertEquals("chahan", ToStringUtil.getRomanization("チャーハン")); 31 assertEquals("chashu", ToStringUtil.getRomanization("チャーシュー")); 32 assertEquals("shumai", ToStringUtil.getRomanization("シューマイ"));
|
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/client/solrj/ |
H A D | SolrQueryTest.java | 44 Assert.assertEquals(q.getFacetFields().length, 2); 48 Assert.assertEquals(q.getFacetQuery().length, 3); 51 Assert.assertEquals(b, true); 53 Assert.assertEquals(b, false); 55 Assert.assertEquals(b, true); 56 Assert.assertEquals(null, q.getFacetFields()); 59 Assert.assertEquals(b, true); 62 Assert.assertEquals(b, false); 64 Assert.assertEquals(null, q.getFacetQuery()); 70 Assert.assertEquals( [all...] |
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/common/params/ |
H A D | SolrParamTest.java | 52 assertEquals( "string" , params.get( "str" ) ); 53 assertEquals( "true" , params.get( "bool" ) ); 54 assertEquals( "100" , params.get( "int" ) ); 55 assertEquals( "10.6" , params.get( "float" ) ); 56 assertEquals( "string" , params.get( "f.fl.str" ) ); 57 assertEquals( "true" , params.get( "f.fl.bool" ) ); 58 assertEquals( "100" , params.get( "f.fl.int" ) ); 59 assertEquals( "10.6" , params.get( "f.fl.float" ) ); 60 assertEquals( "notbool" , params.get( "f.bad.bool" ) ); 61 assertEquals( "notin [all...] |
/lucene-3.6.0/lucene/contrib/spatial/src/test/org/apache/lucene/spatial/ |
H A D | DistanceUtilsTest.java | 37 assertEquals(1.0, result[0], 0); 38 assertEquals(1.0, result[1], 0); 41 assertEquals(-1.0, result[0], 0); 42 assertEquals(-1.0, result[1], 0); 45 assertEquals(2.0, result[0], 0); 46 assertEquals(2.0, result[1], 0); 49 assertEquals(1.0, result[0], 0); 50 assertEquals(2.0, result[1], 0); 53 assertEquals(2.5, result[0], 0.1); 54 assertEquals(111. [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/hunspell/ |
H A D | HunspellStemmerTest.java | 42 assertEquals(2, stems.size()); 43 assertEquals("lucene", stems.get(0).getStemString()); 44 assertEquals("lucen", stems.get(1).getStemString()); 47 assertEquals(1, stems.size()); 48 assertEquals("mahout", stems.get(0).getStemString()); 55 assertEquals(1, stems.size()); 56 assertEquals("olr", stems.get(0).getStemString()); 63 assertEquals(1, stems.size()); 64 assertEquals("ab", stems.get(0).getStemString()); 73 assertEquals( [all...] |
/lucene-3.6.0/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/spell/ |
H A D | TestLevenshteinDistance.java | 28 assertEquals(d,1.0f,0.001); 30 assertEquals(d,0.6666,0.001); 32 assertEquals(d,0.4285,0.001); 34 assertEquals(d,0.75,0.001); 36 assertEquals(d,0.666,0.001); 38 assertEquals(d,0.5,0.001); 40 assertEquals(d,0,0.001); 43 assertEquals(d1,d2,0.001); 51 assertEquals(d,0.0f,0.001);
|
H A D | TestNGramDistance.java | 29 assertEquals(d,1.0f,0.001); 31 assertEquals(d,1.0f,0.001); 33 assertEquals(d,0.0f,0.001); 35 assertEquals(d,0.6666,0.001); 37 assertEquals(d,0.4285,0.001); 39 assertEquals(d,0.25,0.001); 41 assertEquals(d,0.75,0.001); 43 assertEquals(d,0.666,0.001); 45 assertEquals(d,0.5,0.001); 47 assertEquals( [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/ |
H A D | TestBytesRef.java | 23 assertEquals(BytesRef.EMPTY_BYTES, b.bytes); 24 assertEquals(0, b.offset); 25 assertEquals(0, b.length); 31 assertEquals(bytes, b.bytes); 32 assertEquals(0, b.offset); 33 assertEquals(4, b.length); 36 assertEquals("bcd", b2.utf8ToString()); 45 assertEquals(s, s2); 48 assertEquals("\uFFFF", new BytesRef("\uFFFF").utf8ToString());
|
H A D | TestCharacterUtils.java | 37 assertEquals((int) 'A', java4.codePointAt(cpAt3, 0)); 38 assertEquals((int) '\ud801', java4.codePointAt(cpAt3, 3)); 39 assertEquals((int) '\ud801', java4.codePointAt(highSurrogateAt3, 3)); 47 assertEquals((int) 'A', java5.codePointAt(cpAt3, 0)); 48 assertEquals(Character.toCodePoint('\ud801', '\udc1c'), java5.codePointAt( 50 assertEquals((int) '\ud801', java5.codePointAt(highSurrogateAt3, 3)); 63 assertEquals((int) 'A', java4.codePointAt(cpAt3, 0)); 64 assertEquals((int) '\ud801', java4.codePointAt(cpAt3, 3)); 65 assertEquals((int) '\ud801', java4.codePointAt(highSurrogateAt3, 3)); 73 assertEquals((in [all...] |
/lucene-3.6.0/solr/core/src/test/org/apache/solr/util/ |
H A D | TestUtils.java | 36 assertEquals(2,arr.size()); 37 assertEquals("\r\n",arr.get(0)); 38 assertEquals("\t\f\b",arr.get(1)); 41 assertEquals(2,arr.size()); 42 assertEquals("\\r\\n",arr.get(0)); 43 assertEquals("\\t\\f\\b",arr.get(1)); 46 assertEquals(2,arr.size()); 47 assertEquals("\r\n",arr.get(0)); 48 assertEquals("\t\f\b",arr.get(1)); 51 assertEquals( [all...] |
H A D | SolrPluginUtilsTest.java | 77 assertEquals("wrong docs size", 3, docs.size()); 84 assertEquals("wrong list Size", docs.size(), list.size()); 106 assertEquals("",pe("")); 107 assertEquals("foo",pe("foo")); 108 assertEquals("foo\\:bar",pe("foo:bar")); 109 assertEquals("+foo\\:bar",pe("+foo:bar")); 110 assertEquals("foo \\! bar",pe("foo ! bar")); 111 assertEquals("foo\\?",pe("foo?")); 112 assertEquals("foo \"bar\"",pe("foo \"bar\"")); 113 assertEquals("fo [all...] |
/lucene-3.6.0/lucene/contrib/icu/src/test/org/apache/lucene/analysis/icu/segmentation/ |
H A D | TestCharArrayIterator.java | 28 assertEquals(0, ci.getBeginIndex()); 29 assertEquals(7, ci.getEndIndex()); 30 assertEquals(0, ci.getIndex()); 31 assertEquals('t', ci.current()); 32 assertEquals('e', ci.next()); 33 assertEquals('g', ci.last()); 34 assertEquals('n', ci.previous()); 35 assertEquals('t', ci.first()); 36 assertEquals(CharacterIterator.DONE, ci.previous()); 44 assertEquals(' [all...] |
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/client/solrj/response/ |
H A D | QueryResponseTest.java | 88 assertEquals(2, counter); 92 assertEquals(0.0F, price.getStart()); 93 assertEquals(5.0F, price.getEnd()); 94 assertEquals(1.0F, price.getGap()); 95 assertEquals("0.0", price.getCounts().get(0).getValue()); 96 assertEquals(3, price.getCounts().get(0).getCount()); 97 assertEquals("1.0", price.getCounts().get(1).getValue()); 98 assertEquals(0, price.getCounts().get(1).getCount()); 99 assertEquals("2.0", price.getCounts().get(2).getValue()); 100 assertEquals( [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/taxonomy/ |
H A D | TestCategoryPath.java | 36 assertEquals(0, p.length()); 39 assertEquals(i+1, p.length()); 46 assertEquals(0, p.capacityChars()); 47 assertEquals(0, p.capacityComponents()); 48 assertEquals(0, p.length()); 50 assertEquals(5, p.capacityChars()); 51 assertEquals(18, p.capacityComponents()); 52 assertEquals(0, p.length()); 54 assertEquals(27, p.capacityChars()); 55 assertEquals(1 [all...] |
/lucene-3.6.0/lucene/contrib/highlighter/src/test/org/apache/lucene/search/vectorhighlight/ |
H A D | FieldTermStackTest.java | 31 assertEquals( 6, stack.termList.size() ); 32 assertEquals( "a(0,1,0)", stack.pop().toString() ); 33 assertEquals( "a(2,3,1)", stack.pop().toString() ); 34 assertEquals( "a(4,5,2)", stack.pop().toString() ); 35 assertEquals( "a(12,13,6)", stack.pop().toString() ); 36 assertEquals( "a(28,29,14)", stack.pop().toString() ); 37 assertEquals( "a(32,33,16)", stack.pop().toString() ); 48 assertEquals( 8, stack.termList.size() ); 49 assertEquals( "b(6,7,3)", stack.pop().toString() ); 50 assertEquals( " [all...] |
/lucene-3.6.0/lucene/contrib/spatial/src/test/org/apache/lucene/spatial/geohash/ |
H A D | TestGeoHashUtils.java | 35 assertEquals("ezs42e44yx96", hash); 38 assertEquals("u4pruydqqvj8", hash); 51 assertEquals(52.3738007, latitudeLongitude[0], 0.00001D); 52 assertEquals(4.8909347, latitudeLongitude[1], 0.00001D); 65 assertEquals(84.6, latitudeLongitude[0], 0.00001D); 66 assertEquals(10.5, latitudeLongitude[1], 0.00001D); 75 assertEquals(geoHash, GeoHashUtils.encode(52.3738007, 4.8909347)); 77 assertEquals(52.37380061d, decode[0], 0.000001d); 78 assertEquals(4.8909343d, decode[1], 0.000001d); 80 assertEquals(geoHas [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/ |
H A D | TestCharacterUtils.java | 37 assertEquals((int) 'A', java4.codePointAt(cpAt3, 0)); 38 assertEquals((int) '\ud801', java4.codePointAt(cpAt3, 3)); 39 assertEquals((int) '\ud801', java4.codePointAt(highSurrogateAt3, 3)); 47 assertEquals((int) 'A', java5.codePointAt(cpAt3, 0)); 48 assertEquals(Character.toCodePoint('\ud801', '\udc1c'), java5.codePointAt( 50 assertEquals((int) '\ud801', java5.codePointAt(highSurrogateAt3, 3)); 63 assertEquals((int) 'A', java4.codePointAt(cpAt3, 0)); 64 assertEquals((int) '\ud801', java4.codePointAt(cpAt3, 3)); 65 assertEquals((int) '\ud801', java4.codePointAt(highSurrogateAt3, 3)); 73 assertEquals((in [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/example/ |
H A D | TestMultiCLExample.java | 48 assertEquals("Invalid label", "5", result.getFacetResultNode() 50 assertEquals("Invalid value", 2.0, result.getFacetResultNode() 52 assertEquals("Invalid # of subresults", 3, result.getFacetResultNode() 58 assertEquals("Invalid subresult value", 1.0, sub.getValue(), 0.0); 59 assertEquals("Invalid subresult label", "5/2", sub.getLabel() 62 assertEquals("Invalid subresult value", 1.0, sub.getValue(), 0.0); 63 assertEquals("Invalid subresult label", "5/7", sub.getLabel() 66 assertEquals("Invalid subresult value", 1.0, sub.getValue(), 0.0); 67 assertEquals("Invalid subresult label", "5/5", sub.getLabel() 72 assertEquals("Invali [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/ext/ |
H A D | TestExtensions.java | 36 assertEquals("field\\:key", ext.buildExtensionField("key", "field")); 37 assertEquals("\\:key", ext.buildExtensionField("key")); 40 assertEquals("field.key", ext.buildExtensionField("key", "field")); 41 assertEquals(".key", ext.buildExtensionField("key")); 45 assertEquals("field\\:key", ext.buildExtensionField("key", "field")); 46 assertEquals("\\:key", ext.buildExtensionField("key")); 49 assertEquals("field.key", ext.buildExtensionField("key", "field")); 50 assertEquals(".key", ext.buildExtensionField("key")); 63 assertEquals(Extensions.DEFAULT_EXTENSION_FIELD_DELIMITER, this.ext 66 assertEquals(' [all...] |
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/ |
H A D | QueryParsingTest.java | 84 assertEquals(flds[0].getType(), SortField.SCORE); 89 assertEquals(flds[0].getType(), SortField.FLOAT); 90 assertEquals(flds[0].getField(), "weight"); 91 assertEquals(flds[0].getReverse(), true); 94 assertEquals(flds[0].getType(), SortField.FLOAT); 95 assertEquals(flds[0].getField(), "weight"); 96 assertEquals(flds[0].getReverse(), true); 97 assertEquals(flds[1].getType(), SortField.LONG); 98 assertEquals(flds[1].getField(), "bday"); 99 assertEquals(fld [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/test/org/apache/lucene/analysis/ja/dict/ |
H A D | UserDictionaryTest.java | 34 assertEquals(3, dictionaryEntryResult.length); 37 assertEquals(0, dictionaryEntryResult[0][1]); // index of 関西 38 assertEquals(2, dictionaryEntryResult[1][1]); // index of 国際 39 assertEquals(4, dictionaryEntryResult[2][1]); // index of 空港 42 assertEquals(2, dictionaryEntryResult[0][2]); // length of 関西 43 assertEquals(2, dictionaryEntryResult[1][2]); // length of 国際 44 assertEquals(2, dictionaryEntryResult[2][2]); // length of 空港 49 assertEquals(6, dictionaryEntryResult2.length); 56 assertEquals(3, result.length); 58 assertEquals("ニホン", dictionar [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/ |
H A D | TestToken.java | 37 assertEquals(0, t.startOffset()); 38 assertEquals(0, t.endOffset()); 39 assertEquals("hello", t.term()); 40 assertEquals("word", t.type()); 41 assertEquals(0, t.getFlags()); 45 assertEquals("hello", t.term()); 46 assertEquals("hello", t.toString()); 47 assertEquals(6, t.startOffset()); 48 assertEquals(22, t.endOffset()); 49 assertEquals("wor [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/ |
H A D | TestToken.java | 37 assertEquals(0, t.startOffset()); 38 assertEquals(0, t.endOffset()); 39 assertEquals("hello", t.term()); 40 assertEquals("word", t.type()); 41 assertEquals(0, t.getFlags()); 45 assertEquals("hello", t.term()); 46 assertEquals("hello", t.toString()); 47 assertEquals(6, t.startOffset()); 48 assertEquals(22, t.endOffset()); 49 assertEquals("wor [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/index/ |
H A D | CategoryListPayloadStreamTest.java | 62 assertEquals("Wrong value in byte stream", 1, decoder.decode()); 63 assertEquals("Wrong value in byte stream", 10, decoder.decode()); 64 assertEquals("Wrong value in byte stream", 100, decoder.decode()); 65 assertEquals("Wrong value in byte stream", 1000, decoder.decode()); 66 assertEquals("Wrong value in byte stream", 10000, decoder.decode()); 67 assertEquals("Wrong value in byte stream", 100000, decoder.decode()); 68 assertEquals("Wrong value in byte stream", 1000000, decoder.decode()); 69 assertEquals("Wrong value in byte stream", 10000000, decoder.decode()); 70 assertEquals("Wrong value in byte stream", 100000000, decoder.decode()); 71 assertEquals("Wron [all...] |