lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1299526 - in /lucene/pylucene/branches/branch_3x: Makefile test/test_ThaiAnalyzer.py
Date Mon, 12 Mar 2012 02:26:12 GMT
Author: vajda
Date: Mon Mar 12 02:26:12 2012
New Revision: 1299526

URL: http://svn.apache.org/viewvc?rev=1299526&view=rev
Log:
workedaround some test failures due to LUCENE_CURRENT

Modified:
    lucene/pylucene/branches/branch_3x/Makefile
    lucene/pylucene/branches/branch_3x/test/test_ThaiAnalyzer.py

Modified: lucene/pylucene/branches/branch_3x/Makefile
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/Makefile?rev=1299526&r1=1299525&r2=1299526&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/Makefile (original)
+++ lucene/pylucene/branches/branch_3x/Makefile Mon Mar 12 02:26:12 2012
@@ -171,7 +171,7 @@ endif
 
 DEFINES=-DPYLUCENE_VER="\"$(VERSION)\"" -DLUCENE_VER="\"$(LUCENE_VER)\""
 
-LUCENE_JAR=$(LUCENE)/build/lucene-core-$(LUCENE_VER).jar
+LUCENE_JAR=$(LUCENE)/build/core/lucene-core-$(LUCENE_VER).jar
 ANALYZERS_JAR=$(LUCENE)/build/contrib/analyzers/common/lucene-analyzers-$(LUCENE_VER).jar
 HIGHLIGHTER_JAR=$(LUCENE)/build/contrib/highlighter/lucene-highlighter-$(LUCENE_VER).jar
 MEMORY_JAR=$(LUCENE)/build/contrib/memory/lucene-memory-$(LUCENE_VER).jar
@@ -274,9 +274,12 @@ GENERATE=$(JCC) $(foreach jar,$(JARS),--
            $(JCCFLAGS) \
            --package java.lang java.lang.System \
                                java.lang.Runtime \
+                               java.lang.IllegalStateException \
+                               java.lang.IndexOutOfBoundsException \
            --package java.util java.util.Arrays \
                                java.util.HashMap \
                                java.util.HashSet \
+                               java.util.NoSuchElementException \
                      java.text.SimpleDateFormat \
                      java.text.DecimalFormat \
                      java.text.Collator \
@@ -302,10 +305,10 @@ GENERATE=$(JCC) $(foreach jar,$(JARS),--
            --rename org.apache.lucene.search.suggest.fst.Sort=SuggestSort \
            --rename org.apache.lucene.store.DataInput=StoreDataInput \
            --rename org.apache.lucene.store.DataOutput=StoreDataOutput \
-           --rename org.tartarus.snowball.ext.DutchStemmer=SnowballDutchStemmer \
-           --rename org.tartarus.snowball.ext.FrenchStemmer=SnowballFrenchStemmer \
-           --rename org.tartarus.snowball.ext.GermanStemmer=SnowballGermanStemmer \
-           --rename org.tartarus.snowball.ext.PortugueseStemmer=SnowballPortugueseStemmer
\
+           --rename org.tartarus.snowball.ext.DutchStemmer=DutchPorterStemmer \
+           --rename org.tartarus.snowball.ext.FrenchStemmer=FrenchPorterStemmer \
+           --rename org.tartarus.snowball.ext.GermanStemmer=GermanPorterStemmer \
+           --rename org.tartarus.snowball.ext.PortugueseStemmer=PortuguesePorterStemmer \
            --version $(LUCENE_VER) \
            --module python/collections.py \
            --module python/ICUNormalizer2Filter.py \

Modified: lucene/pylucene/branches/branch_3x/test/test_ThaiAnalyzer.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/branch_3x/test/test_ThaiAnalyzer.py?rev=1299526&r1=1299525&r2=1299526&view=diff
==============================================================================
--- lucene/pylucene/branches/branch_3x/test/test_ThaiAnalyzer.py (original)
+++ lucene/pylucene/branches/branch_3x/test/test_ThaiAnalyzer.py Mon Mar 12 02:26:12 2012
@@ -23,8 +23,7 @@ class ThaiAnalyzerTestCase(BaseTokenStre
     def testOffsets(self):
         self.assert_(ThaiWordFilter.DBBI_AVAILABLE,
                      "JRE does not support Thai dictionary-based BreakIterator")
-
-        self._assertAnalyzesTo(ThaiAnalyzer(Version.LUCENE_CURRENT),
+        self._assertAnalyzesTo(ThaiAnalyzer(Version.LUCENE_35),
                                u"การที่ได้ต้องแสดงว่างานดี",

                                [ u"การ", u"ที่", u"ได้",
u"ต้อง", u"แสดง",
                                  u"ว่า", u"งาน", u"ดี"
],
@@ -35,7 +34,7 @@ class ThaiAnalyzerTestCase(BaseTokenStre
         self.assert_(ThaiWordFilter.DBBI_AVAILABLE,
                      "JRE does not support Thai dictionary-based BreakIterator")
 
-        self._assertAnalyzesTo(ThaiAnalyzer(Version.LUCENE_CURRENT),
+        self._assertAnalyzesTo(ThaiAnalyzer(Version.LUCENE_35),
                                u"การที่ได้ต้องแสดงว่างานดี
๑๒๓", 
                                [ u"การ", u"ที่", u"ได้",
u"ต้อง", u"แสดง",
                                  u"ว่า", u"งาน", u"ดี",
u"๑๒๓" ],
@@ -50,7 +49,7 @@ class ThaiAnalyzerTestCase(BaseTokenStre
         self.assert_(ThaiWordFilter.DBBI_AVAILABLE,
                      "JRE does not support Thai dictionary-based BreakIterator")
 
-        analyzer = ThaiAnalyzer(Version.LUCENE_CURRENT)
+        analyzer = ThaiAnalyzer(Version.LUCENE_35)
 
         self._assertAnalyzesTo(analyzer, u"การที่ได้ต้อง
the แสดงว่างานดี", 
                                [ u"การ", u"ที่", u"ได้",
u"ต้อง", u"แสดง",



Mime
View raw message