Added rounding code to getRow() as well and updated the tests accordingly.
[zxing.git] / core / test / src / com / google / zxing / negative / FalsePositivesBlackBoxTestCase.java
index d1e0abb..97e18a2 100644 (file)
@@ -18,8 +18,6 @@ package com.google.zxing.negative;
 
 import com.google.zxing.common.AbstractNegativeBlackBoxTestCase;
 
-import java.io.File;
-
 /**
  * This test ensures that random images with high contrast patterns do not decode as barcodes.
  *
@@ -28,11 +26,11 @@ import java.io.File;
 public final class FalsePositivesBlackBoxTestCase extends AbstractNegativeBlackBoxTestCase {
 
   public FalsePositivesBlackBoxTestCase() {
-    super(new File("test/data/blackbox/falsepositives"));
+    super("test/data/blackbox/falsepositives");
     addTest(2, 0.0f);
-    addTest(0, 90.0f);
-    addTest(0, 180.0f);
-    addTest(0, 270.0f);
+    addTest(1, 90.0f);
+    addTest(1, 180.0f);
+    addTest(2, 270.0f);
   }
 
 }