mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
multiformat reader for one-d
This commit is contained in:
@@ -25,8 +25,8 @@ mod common;
|
||||
fn ean8_black_box1_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/ean8-1",
|
||||
// MultiFormatReader::default(),
|
||||
EAN8Reader {},
|
||||
MultiFormatReader::default(),
|
||||
// EAN8Reader {},
|
||||
BarcodeFormat::EAN_8,
|
||||
);
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ mod common;
|
||||
fn upceanextension_black_box1_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upcean-extension-1",
|
||||
// MultiFormatReader::default(),
|
||||
EAN13Reader {},
|
||||
MultiFormatReader::default(),
|
||||
// EAN13Reader {},
|
||||
BarcodeFormat::EAN_13,
|
||||
);
|
||||
// super("src/test/resources/blackbox/upcean-extension-1", new MultiFormatReader(), BarcodeFormat.EAN_13);
|
||||
|
||||
@@ -25,8 +25,8 @@ mod common;
|
||||
fn ean13_black_box1_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/ean13-1",
|
||||
// MultiFormatReader::default(),
|
||||
EAN13Reader {},
|
||||
MultiFormatReader::default(),
|
||||
// EAN13Reader {},
|
||||
BarcodeFormat::EAN_13,
|
||||
);
|
||||
|
||||
@@ -46,8 +46,8 @@ fn ean13_black_box1_test_case() {
|
||||
fn ean13_black_box2_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/ean13-2",
|
||||
// MultiFormatReader::default(),
|
||||
EAN13Reader {},
|
||||
MultiFormatReader::default(),
|
||||
// EAN13Reader {},
|
||||
BarcodeFormat::EAN_13,
|
||||
);
|
||||
|
||||
@@ -65,8 +65,8 @@ fn ean13_black_box2_test_case() {
|
||||
fn ean13_black_box3_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/ean13-3",
|
||||
// MultiFormatReader::default(),
|
||||
EAN13Reader {},
|
||||
MultiFormatReader::default(),
|
||||
// EAN13Reader {},
|
||||
BarcodeFormat::EAN_13,
|
||||
);
|
||||
|
||||
@@ -85,8 +85,8 @@ fn ean13_black_box3_test_case() {
|
||||
fn ean13_black_box4_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/ean13-4",
|
||||
// MultiFormatReader::default(),
|
||||
EAN13Reader {},
|
||||
MultiFormatReader::default(),
|
||||
// EAN13Reader {},
|
||||
BarcodeFormat::EAN_13,
|
||||
);
|
||||
// super("src/test/resources/blackbox/ean13-4", new MultiFormatReader(), BarcodeFormat.EAN_13);
|
||||
@@ -104,8 +104,8 @@ fn ean13_black_box4_test_case() {
|
||||
fn ean13_black_box5_blurry_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/ean13-5",
|
||||
// MultiFormatReader::default(),
|
||||
EAN13Reader {},
|
||||
MultiFormatReader::default(),
|
||||
// EAN13Reader {},
|
||||
BarcodeFormat::EAN_13,
|
||||
);
|
||||
// super("src/test/resources/blackbox/ean13-5", new MultiFormatReader(), BarcodeFormat.EAN_13);
|
||||
|
||||
@@ -28,8 +28,8 @@ mod common;
|
||||
fn upcablack_box1_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upca-1",
|
||||
// MultiFormatReader::default(),
|
||||
UPCAReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCAReader::default(),
|
||||
BarcodeFormat::UPC_A,
|
||||
);
|
||||
|
||||
@@ -47,8 +47,8 @@ fn upcablack_box1_test_case() {
|
||||
fn upcablack_box2_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upca-2",
|
||||
// MultiFormatReader::default(),
|
||||
UPCAReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCAReader::default(),
|
||||
BarcodeFormat::UPC_A,
|
||||
);
|
||||
|
||||
@@ -66,8 +66,8 @@ fn upcablack_box2_test_case() {
|
||||
fn upcablack_box3_reflective_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upca-3",
|
||||
// MultiFormatReader::default(),
|
||||
UPCAReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCAReader::default(),
|
||||
BarcodeFormat::UPC_A,
|
||||
);
|
||||
|
||||
@@ -85,8 +85,8 @@ fn upcablack_box3_reflective_test_case() {
|
||||
fn upcablack_box4_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upca-4",
|
||||
// MultiFormatReader::default(),
|
||||
UPCAReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCAReader::default(),
|
||||
BarcodeFormat::UPC_A,
|
||||
);
|
||||
|
||||
@@ -104,8 +104,8 @@ fn upcablack_box4_test_case() {
|
||||
fn upcablack_box5_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upca-5",
|
||||
// MultiFormatReader::default(),
|
||||
UPCAReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCAReader::default(),
|
||||
BarcodeFormat::UPC_A,
|
||||
);
|
||||
|
||||
@@ -124,8 +124,8 @@ fn upcablack_box5_test_case() {
|
||||
fn upcablack_box6_blurry_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upca-6",
|
||||
// MultiFormatReader::default(),
|
||||
UPCAReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCAReader::default(),
|
||||
BarcodeFormat::UPC_A,
|
||||
);
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ mod common;
|
||||
fn upceblack_box1_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upce-1",
|
||||
// MultiFormatReader::default(),
|
||||
UPCEReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCEReader::default(),
|
||||
BarcodeFormat::UPC_E,
|
||||
);
|
||||
|
||||
@@ -47,8 +47,8 @@ fn upceblack_box1_test_case() {
|
||||
fn upceblack_box2_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upce-2",
|
||||
// MultiFormatReader::default(),
|
||||
UPCEReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCEReader::default(),
|
||||
BarcodeFormat::UPC_E,
|
||||
);
|
||||
|
||||
@@ -66,8 +66,8 @@ fn upceblack_box2_test_case() {
|
||||
fn upceblack_box3_reflective_test_case() {
|
||||
let mut tester = common::AbstractBlackBoxTestCase::new(
|
||||
"test_resources/blackbox/upce-3",
|
||||
// MultiFormatReader::default(),
|
||||
UPCEReader::default(),
|
||||
MultiFormatReader::default(),
|
||||
// UPCEReader::default(),
|
||||
BarcodeFormat::UPC_E,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user