From: kev.sully Date: Thu, 20 Nov 2008 17:27:12 +0000 (+0000) Subject: ISSUE: http://code.google.com/p/zxing/issues/detail?id=110 X-Git-Url: http://git.rot13.org/?p=zxing.git;a=commitdiff_plain;h=bf9ae173dc4e89ba5c4dff25c6a9f21e83a9dc66 ISSUE: 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 --- diff --git a/core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java b/core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java deleted file mode 100644 index 16a1f9fc..00000000 --- a/core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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); - } - -} \ No newline at end of file diff --git a/core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java b/core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java new file mode 100644 index 00000000..e6682f6f --- /dev/null +++ b/core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java @@ -0,0 +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.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