mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
coda_bar reader passes
This commit is contained in:
@@ -14,21 +14,23 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.google.zxing.oned;
|
||||
use rxing::{BarcodeFormat, MultiFormatReader, oned::{OneDReader, CodaBarReader}};
|
||||
|
||||
import com.google.zxing.BarcodeFormat;
|
||||
import com.google.zxing.MultiFormatReader;
|
||||
import com.google.zxing.common.AbstractBlackBoxTestCase;
|
||||
mod common;
|
||||
|
||||
/**
|
||||
* @author Sean Owen
|
||||
*/
|
||||
public final class CodabarBlackBox1TestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public CodabarBlackBox1TestCase() {
|
||||
super("src/test/resources/blackbox/codabar-1", new MultiFormatReader(), BarcodeFormat.CODABAR);
|
||||
addTest(11, 11, 0.0f);
|
||||
addTest(11, 11, 180.0f);
|
||||
}
|
||||
#[test]
|
||||
fn codabar_black_box1_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/codabar-1",
|
||||
CodaBarReader::new(),
|
||||
BarcodeFormat::CODABAR,
|
||||
);
|
||||
// super("src/test/resources/blackbox/codabar-1", new MultiFormatReader(), BarcodeFormat.CODABAR);
|
||||
tester.add_test(11, 11, 0.0);
|
||||
tester.add_test(11, 11, 180.0);
|
||||
|
||||
tester.test_black_box();
|
||||
}
|
||||
Reference in New Issue
Block a user