Renamed ITF14Reader to ITFReader. ITFReader now reads arbitrary number of digits. Added a QuietZone check. Removed checksum validation. Added more test cases.

git-svn-id: https://zxing.googlecode.com/svn/trunk@745 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
kev.sully 2008-11-20 17:27:12 +00:00
parent 233ae565fe
commit b0ef487b31

View file

@ -16,6 +16,7 @@
package com.google.zxing.oned;
import com.google.zxing.MultiFormatReader;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.common.AbstractBlackBoxTestCase;
@ -24,13 +25,11 @@ import java.io.File;
/**
* @author kevin.osullivan@sita.aero
*/
public final class ITF14BlackBox1TestCase extends AbstractBlackBoxTestCase {
public final class ITFBlackBox1TestCase extends AbstractBlackBoxTestCase {
public ITF14BlackBox1TestCase() {
// TODO re-enable MultiFormatReader here once we've better settled how to handle all these new formats
super(new File("test/data/blackbox/itf14-1"), new ITF14Reader(), BarcodeFormat.ITF_14);
addTest(2, 2, 0.0f);
addTest(2, 2, 180.0f);
public ITFBlackBox1TestCase() {
super(new File("test/data/blackbox/itf-1"), new MultiFormatReader(), BarcodeFormat.ITF);
addTest(6, 6, 0.0f);
}
}