projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue 537, don't return UPC-A for EAN-13 starting with 0 when UPC-A isn't allowed
[zxing.git]
/
core
/
test
/
src
/
com
/
google
/
zxing
/
oned
/
EAN13BlackBox1TestCase.java
diff --git
a/core/test/src/com/google/zxing/oned/EAN13BlackBox1TestCase.java
b/core/test/src/com/google/zxing/oned/EAN13BlackBox1TestCase.java
index
f7f77f9
..
a8fc37d
100644
(file)
--- a/
core/test/src/com/google/zxing/oned/EAN13BlackBox1TestCase.java
+++ b/
core/test/src/com/google/zxing/oned/EAN13BlackBox1TestCase.java
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 2008
Google Inc.
+ * 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-16,18
+16,19
@@
package com.google.zxing.oned;
package com.google.zxing.oned;
-import com.google.zxing.
common.AbstractBlackBoxTestCase
;
+import com.google.zxing.
BarcodeFormat
;
import com.google.zxing.MultiFormatReader;
import com.google.zxing.MultiFormatReader;
-
-import java.io.File;
+import com.google.zxing.common.AbstractBlackBoxTestCase;
/**
/**
- * @author
srowen@google.com (Sean Owen)
+ * @author
Sean Owen
*/
public final class EAN13BlackBox1TestCase extends AbstractBlackBoxTestCase {
public EAN13BlackBox1TestCase() {
*/
public final class EAN13BlackBox1TestCase extends AbstractBlackBoxTestCase {
public EAN13BlackBox1TestCase() {
- super(new File("test/data/blackbox/ean13-1"), new MultiFormatReader(), 0.66);
+ super("test/data/blackbox/ean13-1", new MultiFormatReader(), BarcodeFormat.EAN_13);
+ addTest(30, 32, 0.0f);
+ addTest(27, 32, 180.0f);
}
}
\ No newline at end of file
}
}
\ No newline at end of file