lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1636830 - in /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene: index/TestDocValuesIndexing.java util/automaton/TestAutomaton.java
Date Wed, 05 Nov 2014 09:17:56 GMT
Author: mikemccand
Date: Wed Nov  5 09:17:56 2014
New Revision: 1636830

URL: http://svn.apache.org/r1636830
Log:
LUCENE-6046: let this test determinize massive automata

Modified:
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocValuesIndexing.java
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocValuesIndexing.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocValuesIndexing.java?rev=1636830&r1=1636829&r2=1636830&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocValuesIndexing.java
(original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestDocValuesIndexing.java
Wed Nov  5 09:17:56 2014
@@ -23,10 +23,11 @@ import java.util.concurrent.atomic.Atomi
 
 import org.apache.lucene.analysis.Analyzer;
 import org.apache.lucene.analysis.MockAnalyzer;
+import org.apache.lucene.analysis.TokenStream;
 import org.apache.lucene.document.BinaryDocValuesField;
 import org.apache.lucene.document.Document;
-import org.apache.lucene.document.Field;
 import org.apache.lucene.document.Field.Store;
+import org.apache.lucene.document.Field;
 import org.apache.lucene.document.NumericDocValuesField;
 import org.apache.lucene.document.SortedDocValuesField;
 import org.apache.lucene.document.SortedSetDocValuesField;

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java?rev=1636830&r1=1636829&r2=1636830&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java
(original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java
Wed Nov  5 09:17:56 2014
@@ -597,7 +597,7 @@ public class TestAutomaton extends Lucen
       if (VERBOSE) {
         System.out.println("  randomNoOp: determinize");
       }
-      return Operations.determinize(a, DEFAULT_MAX_DETERMINIZED_STATES);
+      return Operations.determinize(a, Integer.MAX_VALUE);
     case 1:
       if (a.getNumStates() < 100) {
         if (VERBOSE) {
@@ -744,7 +744,7 @@ public class TestAutomaton extends Lucen
         if (VERBOSE) {
           System.out.println("  op=determinize");
         }
-        a = Operations.determinize(a, DEFAULT_MAX_DETERMINIZED_STATES);
+        a = Operations.determinize(a, Integer.MAX_VALUE);
         assertTrue(a.isDeterministic());
         break;
 
@@ -1078,9 +1078,9 @@ public class TestAutomaton extends Lucen
 
       // Use sameLanguage:
       Automaton a2 = Operations.removeDeadStates(Operations.determinize(unionTerms(terms),
-        DEFAULT_MAX_DETERMINIZED_STATES));
+        Integer.MAX_VALUE));
       assertTrue(Operations.sameLanguage(a2, Operations.removeDeadStates(Operations.determinize(a,
-        DEFAULT_MAX_DETERMINIZED_STATES))));
+        Integer.MAX_VALUE))));
 
       // Do same check, in UTF8 space
       Automaton utf8 = randomNoOp(new UTF32ToUTF8().convert(a));



Mime
View raw message