Changed the 2D histogram calculation to sample four rows spread across the image...
[zxing.git] / core / test / src / com / google / zxing / qrcode / QRCodeBlackBox4TestCase.java
index 5ca56a9..c614aa8 100644 (file)
@@ -20,8 +20,6 @@ import com.google.zxing.MultiFormatReader;
 import com.google.zxing.BarcodeFormat;
 import com.google.zxing.common.AbstractBlackBoxTestCase;
 
-import java.io.File;
-
 /**
  * Tests of various QR Codes from t-shirts, which are notoriously not flat.
  *
@@ -30,11 +28,11 @@ import java.io.File;
 public final class QRCodeBlackBox4TestCase extends AbstractBlackBoxTestCase {
 
   public QRCodeBlackBox4TestCase() {
-    super(new File("test/data/blackbox/qrcode-4"), new MultiFormatReader(), BarcodeFormat.QR_CODE);
-    addTest(33, 33, 0.0f);
-    addTest(33, 33, 90.0f);
-    addTest(32, 32, 180.0f);
-    addTest(32, 32, 270.0f);
+    super("test/data/blackbox/qrcode-4", new MultiFormatReader(), BarcodeFormat.QR_CODE);
+    addTest(34, 34, 0.0f);
+    addTest(36, 36, 90.0f);
+    addTest(35, 35, 180.0f);
+    addTest(34, 34, 270.0f);
   }
 
 }
\ No newline at end of file