lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rjer...@apache.org
Subject svn commit: r1630189 [5/5] - in /lucene/dev/branches/branch_5x/lucene: ./ analysis/common/src/java/org/apache/lucene/analysis/ar/ analysis/common/src/java/org/apache/lucene/analysis/bg/ analysis/common/src/java/org/apache/lucene/analysis/br/ analysis/c...
Date Wed, 08 Oct 2014 17:59:18 GMT
Copied: lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/standard/WordBreakTestUnicode_6_3_0.java
(from r1630182, lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/WordBreakTestUnicode_6_3_0.java)
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/standard/WordBreakTestUnicode_6_3_0.java?p2=lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/standard/WordBreakTestUnicode_6_3_0.java&p1=lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/WordBreakTestUnicode_6_3_0.java&r1=1630182&r2=1630189&rev=1630189&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/WordBreakTestUnicode_6_3_0.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/standard/WordBreakTestUnicode_6_3_0.java
Wed Oct  8 17:59:16 2014
@@ -1,4 +1,4 @@
-package org.apache.lucene.analysis.core;
+package org.apache.lucene.analysis.standard;
 
 /**
  * Licensed to the Apache Software Foundation (ASF) under one or more

Modified: lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/sv/TestSwedishAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/sv/TestSwedishAnalyzer.java?rev=1630189&r1=1630188&r2=1630189&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/sv/TestSwedishAnalyzer.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/sv/TestSwedishAnalyzer.java
Wed Oct  8 17:59:16 2014
@@ -22,6 +22,7 @@ import java.io.IOException;
 import org.apache.lucene.analysis.Analyzer;
 import org.apache.lucene.analysis.BaseTokenStreamTestCase;
 import org.apache.lucene.analysis.util.CharArraySet;
+import org.apache.lucene.util.Version;
 
 public class TestSwedishAnalyzer extends BaseTokenStreamTestCase {
   /** This test fails with NPE when the 
@@ -53,4 +54,11 @@ public class TestSwedishAnalyzer extends
   public void testRandomStrings() throws Exception {
     checkRandomData(random(), new SwedishAnalyzer(), 1000*RANDOM_MULTIPLIER);
   }
+
+  public void testBackcompat40() throws IOException {
+    SwedishAnalyzer a = new SwedishAnalyzer();
+    a.setVersion(Version.LUCENE_4_6_1);
+    // this is just a test to see the correct unicode version is being used, not actually
testing hebrew
+    assertAnalyzesTo(a, "א\"א", new String[] {"א", "א"});
+  }
 }

Modified: lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/th/TestThaiAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/th/TestThaiAnalyzer.java?rev=1630189&r1=1630188&r2=1630189&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/th/TestThaiAnalyzer.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/th/TestThaiAnalyzer.java
Wed Oct  8 17:59:16 2014
@@ -29,6 +29,7 @@ import org.apache.lucene.analysis.core.K
 import org.apache.lucene.analysis.core.StopAnalyzer;
 import org.apache.lucene.analysis.tokenattributes.FlagsAttribute;
 import org.apache.lucene.analysis.util.CharArraySet;
+import org.apache.lucene.util.Version;
 
 /**
  * Test case for ThaiAnalyzer, modified from TestFrenchAnalyzer
@@ -124,4 +125,11 @@ public class TestThaiAnalyzer extends Ba
           new int[] { 0, 5, 8, 10, 16, 19, 22, 25, 29, 33, 36, 39 },
           new int[] { 4, 7, 9, 14, 19, 22, 25, 29, 33, 36, 39, 41 });
   }
+
+  public void testBackcompat40() throws IOException {
+    ThaiAnalyzer a = new ThaiAnalyzer();
+    a.setVersion(Version.LUCENE_4_6_1);
+    // this is just a test to see the correct unicode version is being used, not actually
testing hebrew
+    assertAnalyzesTo(a, "א\"א", new String[] {"א", "א"});
+  }
 }

Modified: lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/tr/TestTurkishAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/tr/TestTurkishAnalyzer.java?rev=1630189&r1=1630188&r2=1630189&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/tr/TestTurkishAnalyzer.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/analysis/common/src/test/org/apache/lucene/analysis/tr/TestTurkishAnalyzer.java
Wed Oct  8 17:59:16 2014
@@ -22,6 +22,7 @@ import java.io.IOException;
 import org.apache.lucene.analysis.Analyzer;
 import org.apache.lucene.analysis.BaseTokenStreamTestCase;
 import org.apache.lucene.analysis.util.CharArraySet;
+import org.apache.lucene.util.Version;
 
 public class TestTurkishAnalyzer extends BaseTokenStreamTestCase {
   /** This test fails with NPE when the 
@@ -55,4 +56,11 @@ public class TestTurkishAnalyzer extends
   public void testRandomStrings() throws Exception {
     checkRandomData(random(), new TurkishAnalyzer(), 1000*RANDOM_MULTIPLIER);
   }
+
+  public void testBackcompat40() throws IOException {
+    TurkishAnalyzer a = new TurkishAnalyzer();
+    a.setVersion(Version.LUCENE_4_6_1);
+    // this is just a test to see the correct unicode version is being used, not actually
testing hebrew
+    assertAnalyzesTo(a, "א\"א", new String[] {"א", "א"});
+  }
 }

Modified: lucene/dev/branches/branch_5x/lucene/tools/junit4/cached-timehints.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/tools/junit4/cached-timehints.txt?rev=1630189&r1=1630188&r2=1630189&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/tools/junit4/cached-timehints.txt (original)
+++ lucene/dev/branches/branch_5x/lucene/tools/junit4/cached-timehints.txt Wed Oct  8 17:59:16
2014
@@ -48,14 +48,14 @@ org.apache.lucene.analysis.core.TestDuel
 org.apache.lucene.analysis.core.TestFactories=13995,17156,12500,15103,14760,22010,13206
 org.apache.lucene.analysis.core.TestKeywordAnalyzer=241,205,234,403,223,326,209
 org.apache.lucene.analysis.core.TestRandomChains=3048,4646,3050,5003,4274,4400,3679
-org.apache.lucene.analysis.core.TestStandardAnalyzer=3672,3118,2532,4071,2379,2271,2479
+org.apache.lucene.analysis.standard.TestStandardAnalyzer=3672,3118,2532,4071,2379,2271,2479
 org.apache.lucene.analysis.core.TestStopAnalyzer=31,39,16,22,66,10,19
 org.apache.lucene.analysis.core.TestStopFilter=76,83,64,12,148,19,19
 org.apache.lucene.analysis.core.TestStopFilterFactory=31,7,27,92,10,29,22
 org.apache.lucene.analysis.core.TestTypeTokenFilter=13,26,18,352,18,113,44
 org.apache.lucene.analysis.core.TestTypeTokenFilterFactory=23,36,85,60,23,16,112
-org.apache.lucene.analysis.core.TestUAX29URLEmailAnalyzer=315,243,502,493,183,240,564
-org.apache.lucene.analysis.core.TestUAX29URLEmailTokenizer=1656,837,1071,1402,2610,1318,1134
+org.apache.lucene.analysis.standard.TestUAX29URLEmailAnalyzer=315,243,502,493,183,240,564
+org.apache.lucene.analysis.standard.TestUAX29URLEmailTokenizer=1656,837,1071,1402,2610,1318,1134
 org.apache.lucene.analysis.cz.TestCzechAnalyzer=610,176,302,835,120,221,92
 org.apache.lucene.analysis.cz.TestCzechStemFilterFactory=8,10,8,18,23,35,53
 org.apache.lucene.analysis.cz.TestCzechStemmer=38,126,47,24,242,96,34



Mime
View raw message