From bf9ae173dc4e89ba5c4dff25c6a9f21e83a9dc66 Mon Sep 17 00:00:00 2001 From: "kev.sully" Date: Thu, 20 Nov 2008 17:27:12 +0000 Subject: [PATCH] ISSUE: http://code.google.com/p/zxing/issues/detail?id=110 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: http://zxing.googlecode.com/svn/trunk@745 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- ...estCase.java => ITFBlackBox1TestCase.java} | 69 +++++++++---------- 1 file changed, 34 insertions(+), 35 deletions(-) rename core/test/src/com/google/zxing/oned/{ITF14BlackBox1TestCase.java => ITFBlackBox1TestCase.java} (68%) diff --git a/core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java b/core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java similarity index 68% rename from core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java rename to core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java index 16a1f9fc..e6682f6f 100644 --- a/core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java +++ b/core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java @@ -1,36 +1,35 @@ -/* - * Copyright 2008 ZXing authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.zxing.oned; - -import com.google.zxing.BarcodeFormat; -import com.google.zxing.common.AbstractBlackBoxTestCase; - -import java.io.File; - -/** - * @author kevin.osullivan@sita.aero - */ -public final class ITF14BlackBox1TestCase 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); - } - +/* + * Copyright 2008 ZXing authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.zxing.oned; + +import com.google.zxing.MultiFormatReader; +import com.google.zxing.BarcodeFormat; +import com.google.zxing.common.AbstractBlackBoxTestCase; + +import java.io.File; + +/** + * @author kevin.osullivan@sita.aero + */ +public final class ITFBlackBox1TestCase extends AbstractBlackBoxTestCase { + + public ITFBlackBox1TestCase() { + super(new File("test/data/blackbox/itf-1"), new MultiFormatReader(), BarcodeFormat.ITF); + addTest(6, 6, 0.0f); + } + } \ No newline at end of file -- 2.20.1