mirror of
https://github.com/zxing/zxing.git
synced 2024-09-20 05:27:32 -07:00
Update other tests to reflect better performance
git-svn-id: https://zxing.googlecode.com/svn/trunk@2697 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
c2ddf95c8a
commit
5d3a52df9c
|
@ -27,10 +27,10 @@ public final class DataMatrixBlackBox2TestCase extends AbstractBlackBoxTestCase
|
|||
|
||||
public DataMatrixBlackBox2TestCase() {
|
||||
super("test/data/blackbox/datamatrix-2", new MultiFormatReader(), BarcodeFormat.DATA_MATRIX);
|
||||
addTest(8, 8, 0, 1, 0.0f);
|
||||
addTest(14, 14, 0, 1, 90.0f);
|
||||
addTest(14, 14, 0, 1, 180.0f);
|
||||
addTest(13, 13, 0, 1, 270.0f);
|
||||
addTest(8, 15, 0, 1, 0.0f);
|
||||
addTest(14, 16, 0, 1, 90.0f);
|
||||
addTest(14, 15, 0, 1, 180.0f);
|
||||
addTest(13, 16, 0, 1, 270.0f);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -28,9 +28,9 @@ public final class QRCodeBlackBox1TestCase extends AbstractBlackBoxTestCase {
|
|||
public QRCodeBlackBox1TestCase() {
|
||||
super("test/data/blackbox/qrcode-1", new MultiFormatReader(), BarcodeFormat.QR_CODE);
|
||||
addTest(17, 17, 0.0f);
|
||||
addTest(14, 14, 90.0f);
|
||||
addTest(14, 15, 90.0f);
|
||||
addTest(17, 17, 180.0f);
|
||||
addTest(14, 14, 270.0f);
|
||||
addTest(14, 15, 270.0f);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,10 +27,10 @@ public final class QRCodeBlackBox2TestCase extends AbstractBlackBoxTestCase {
|
|||
|
||||
public QRCodeBlackBox2TestCase() {
|
||||
super("test/data/blackbox/qrcode-2", new MultiFormatReader(), BarcodeFormat.QR_CODE);
|
||||
addTest(30, 30, 0.0f);
|
||||
addTest(29, 29, 90.0f);
|
||||
addTest(30, 31, 0.0f);
|
||||
addTest(29, 30, 90.0f);
|
||||
addTest(30, 30, 180.0f);
|
||||
addTest(29, 29, 270.0f);
|
||||
addTest(29, 30, 270.0f);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -28,8 +28,8 @@ public final class QRCodeBlackBox3TestCase extends AbstractBlackBoxTestCase {
|
|||
public QRCodeBlackBox3TestCase() {
|
||||
super("test/data/blackbox/qrcode-3", new MultiFormatReader(), BarcodeFormat.QR_CODE);
|
||||
addTest(38, 38, 0.0f);
|
||||
addTest(38, 38, 90.0f);
|
||||
addTest(36, 36, 180.0f);
|
||||
addTest(38, 39, 90.0f);
|
||||
addTest(36, 38, 180.0f);
|
||||
addTest(39, 39, 270.0f);
|
||||
}
|
||||
|
||||
|
|
|
@ -31,8 +31,8 @@ public final class QRCodeBlackBox4TestCase extends AbstractBlackBoxTestCase {
|
|||
super("test/data/blackbox/qrcode-4", new MultiFormatReader(), BarcodeFormat.QR_CODE);
|
||||
addTest(36, 36, 0.0f);
|
||||
addTest(35, 35, 90.0f);
|
||||
addTest(35, 35, 180.0f);
|
||||
addTest(35, 35, 270.0f);
|
||||
addTest(35, 36, 180.0f);
|
||||
addTest(35, 36, 270.0f);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class QRCodeBlackBox5TestCase extends AbstractBlackBoxTestCase {
|
|||
addTest(19, 19, 0.0f);
|
||||
addTest(19, 19, 90.0f);
|
||||
addTest(19, 19, 180.0f);
|
||||
addTest(18, 18, 270.0f);
|
||||
addTest(18, 19, 270.0f);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -29,9 +29,9 @@ public final class QRCodeBlackBox6TestCase extends AbstractBlackBoxTestCase {
|
|||
public QRCodeBlackBox6TestCase() {
|
||||
super("test/data/blackbox/qrcode-6", new MultiFormatReader(), BarcodeFormat.QR_CODE);
|
||||
addTest(15, 15, 0.0f);
|
||||
addTest(14, 14, 90.0f);
|
||||
addTest(12, 13, 180.0f);
|
||||
addTest(14, 14, 270.0f);
|
||||
addTest(14, 15, 90.0f);
|
||||
addTest(12, 15, 180.0f);
|
||||
addTest(14, 15, 270.0f);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue