You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2014/11/05 10:19:50 UTC

svn commit: r1636832 - in /lucene/dev/branches/lucene_solr_4_10: ./ lucene/ lucene/core/ lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java

Author: mikemccand
Date: Wed Nov  5 09:19:49 2014
New Revision: 1636832

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

Modified:
    lucene/dev/branches/lucene_solr_4_10/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/core/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java

Modified: lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java?rev=1636832&r1=1636831&r2=1636832&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java (original)
+++ lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/util/automaton/TestAutomaton.java Wed Nov  5 09:19:49 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));