mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r835523 - /lucene/mahout/trunk/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java
Date Thu, 12 Nov 2009 20:13:57 GMT
Author: srowen
Date: Thu Nov 12 20:13:56 2009
New Revision: 835523

URL: http://svn.apache.org/viewvc?rev=835523&view=rev
Log:
Quick fix for unit test failure due to double comparison

Modified:
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java

Modified: lucene/mahout/trunk/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java?rev=835523&r1=835522&r2=835523&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java
(original)
+++ lucene/mahout/trunk/core/src/test/java/org/apache/mahout/df/split/OptIgSplitTest.java
Thu Nov 12 20:13:56 2009
@@ -53,7 +53,7 @@
       Split expected = ref.computeSplit(data, attr);
       Split actual = opt.computeSplit(data, attr);
 
-      assertEquals(expected.ig, actual.ig);
+      assertEquals(expected.ig, actual.ig, 0.0000001);
       assertEquals(expected.split, actual.split);
     }
   }



Mime
View raw message