Added a reflective UPC-E unit test. We cannot decode any of these silver on silver...
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 9 Jul 2008 21:46:27 +0000 (21:46 +0000)
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 9 Jul 2008 21:46:27 +0000 (21:46 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@509 59b500cc-1b3d-0410-9834-0bbf25fbcc57

23 files changed:
core/test/data/blackbox/upce-3/01.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/01.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/02.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/02.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/03.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/03.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/04.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/04.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/05.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/05.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/06.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/06.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/07.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/07.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/08.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/08.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/09.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/09.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/10.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/10.txt [new file with mode: 0644]
core/test/data/blackbox/upce-3/11.jpg [new file with mode: 0755]
core/test/data/blackbox/upce-3/11.txt [new file with mode: 0644]
core/test/src/com/google/zxing/oned/UPCEBlackBox3ReflectiveTestCase.java [new file with mode: 0644]

diff --git a/core/test/data/blackbox/upce-3/01.jpg b/core/test/data/blackbox/upce-3/01.jpg
new file mode 100755 (executable)
index 0000000..1c81ac8
Binary files /dev/null and b/core/test/data/blackbox/upce-3/01.jpg differ
diff --git a/core/test/data/blackbox/upce-3/01.txt b/core/test/data/blackbox/upce-3/01.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/02.jpg b/core/test/data/blackbox/upce-3/02.jpg
new file mode 100755 (executable)
index 0000000..7c179f3
Binary files /dev/null and b/core/test/data/blackbox/upce-3/02.jpg differ
diff --git a/core/test/data/blackbox/upce-3/02.txt b/core/test/data/blackbox/upce-3/02.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/03.jpg b/core/test/data/blackbox/upce-3/03.jpg
new file mode 100755 (executable)
index 0000000..ad66a12
Binary files /dev/null and b/core/test/data/blackbox/upce-3/03.jpg differ
diff --git a/core/test/data/blackbox/upce-3/03.txt b/core/test/data/blackbox/upce-3/03.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/04.jpg b/core/test/data/blackbox/upce-3/04.jpg
new file mode 100755 (executable)
index 0000000..8137670
Binary files /dev/null and b/core/test/data/blackbox/upce-3/04.jpg differ
diff --git a/core/test/data/blackbox/upce-3/04.txt b/core/test/data/blackbox/upce-3/04.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/05.jpg b/core/test/data/blackbox/upce-3/05.jpg
new file mode 100755 (executable)
index 0000000..ada12f5
Binary files /dev/null and b/core/test/data/blackbox/upce-3/05.jpg differ
diff --git a/core/test/data/blackbox/upce-3/05.txt b/core/test/data/blackbox/upce-3/05.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/06.jpg b/core/test/data/blackbox/upce-3/06.jpg
new file mode 100755 (executable)
index 0000000..5af8b70
Binary files /dev/null and b/core/test/data/blackbox/upce-3/06.jpg differ
diff --git a/core/test/data/blackbox/upce-3/06.txt b/core/test/data/blackbox/upce-3/06.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/07.jpg b/core/test/data/blackbox/upce-3/07.jpg
new file mode 100755 (executable)
index 0000000..4aa4c29
Binary files /dev/null and b/core/test/data/blackbox/upce-3/07.jpg differ
diff --git a/core/test/data/blackbox/upce-3/07.txt b/core/test/data/blackbox/upce-3/07.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/08.jpg b/core/test/data/blackbox/upce-3/08.jpg
new file mode 100755 (executable)
index 0000000..99bcaab
Binary files /dev/null and b/core/test/data/blackbox/upce-3/08.jpg differ
diff --git a/core/test/data/blackbox/upce-3/08.txt b/core/test/data/blackbox/upce-3/08.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/09.jpg b/core/test/data/blackbox/upce-3/09.jpg
new file mode 100755 (executable)
index 0000000..8250238
Binary files /dev/null and b/core/test/data/blackbox/upce-3/09.jpg differ
diff --git a/core/test/data/blackbox/upce-3/09.txt b/core/test/data/blackbox/upce-3/09.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/10.jpg b/core/test/data/blackbox/upce-3/10.jpg
new file mode 100755 (executable)
index 0000000..4209aef
Binary files /dev/null and b/core/test/data/blackbox/upce-3/10.jpg differ
diff --git a/core/test/data/blackbox/upce-3/10.txt b/core/test/data/blackbox/upce-3/10.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/data/blackbox/upce-3/11.jpg b/core/test/data/blackbox/upce-3/11.jpg
new file mode 100755 (executable)
index 0000000..9180195
Binary files /dev/null and b/core/test/data/blackbox/upce-3/11.jpg differ
diff --git a/core/test/data/blackbox/upce-3/11.txt b/core/test/data/blackbox/upce-3/11.txt
new file mode 100644 (file)
index 0000000..e33c450
--- /dev/null
@@ -0,0 +1 @@
+04965802
\ No newline at end of file
diff --git a/core/test/src/com/google/zxing/oned/UPCEBlackBox3ReflectiveTestCase.java b/core/test/src/com/google/zxing/oned/UPCEBlackBox3ReflectiveTestCase.java
new file mode 100644 (file)
index 0000000..ee0e31a
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * 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 dswitkin@google.com (Daniel Switkin)
+ */
+public final class UPCEBlackBox3ReflectiveTestCase extends AbstractBlackBoxTestCase {
+
+  public UPCEBlackBox3ReflectiveTestCase() {
+    super(new File("test/data/blackbox/upce-3"), new MultiFormatReader(), BarcodeFormat.UPC_E);
+    addTest(0, 0, 0.0f);
+    addTest(0, 0, 180.0f);
+  }
+
+}