From 17c2fc3a79397f48a150cc6d0ed88c583aab77be Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Tue, 11 Oct 2022 08:11:23 -0500 Subject: [PATCH] small updates, java tests --- src/aztec/aztec_writer.rs | 2 +- tests/QRCodeBlackBox1TestCase.rs | 87 +++++++++++++++++++++++++++++++- 2 files changed, 87 insertions(+), 2 deletions(-) diff --git a/src/aztec/aztec_writer.rs b/src/aztec/aztec_writer.rs index 788ddf3..dbbddaf 100644 --- a/src/aztec/aztec_writer.rs +++ b/src/aztec/aztec_writer.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -use std::{any::Any, collections::HashMap}; +use std::{ collections::HashMap}; use encoding::EncodingRef; diff --git a/tests/QRCodeBlackBox1TestCase.rs b/tests/QRCodeBlackBox1TestCase.rs index 2eaceb8..cf3b07b 100644 --- a/tests/QRCodeBlackBox1TestCase.rs +++ b/tests/QRCodeBlackBox1TestCase.rs @@ -39,4 +39,89 @@ fn QRCodeBlackBox1TestCase() { } -// TEST CASE 15 FAILING AT allignment patter finder! (line 88) FROM detector 486 \ No newline at end of file +// TEST CASE 15 FAILING AT allignment patter finder! (line 88) FROM detector 486 + +/* + JAVA RESULTS:::: + +Atul Starting src/test/resources/blackbox/qrcode-1/2.png + Starting src/test/resources/blackbox/qrcode-1/9.png + Starting src/test/resources/blackbox/qrcode-1/16.png + could not read at rotation 90.000000 + could not read at rotation 90.000000 w/TH + could not read at rotation 270.000000 + could not read at rotation 270.000000 w/TH + Starting src/test/resources/blackbox/qrcode-1/11.png + Starting src/test/resources/blackbox/qrcode-1/5.png + Starting src/test/resources/blackbox/qrcode-1/3.png + Starting src/test/resources/blackbox/qrcode-1/6.png + Starting src/test/resources/blackbox/qrcode-1/14.png + could not read at rotation 0.000000 + could not read at rotation 0.000000 w/TH + could not read at rotation 90.000000 + could not read at rotation 90.000000 w/TH + could not read at rotation 180.000000 + could not read at rotation 180.000000 w/TH + could not read at rotation 270.000000 + could not read at rotation 270.000000 w/TH + Starting src/test/resources/blackbox/qrcode-1/8.png + Starting src/test/resources/blackbox/qrcode-1/13.png + could not read at rotation 0.000000 + could not read at rotation 0.000000 w/TH + could not read at rotation 90.000000 + could not read at rotation 90.000000 w/TH + could not read at rotation 180.000000 + could not read at rotation 180.000000 w/TH + could not read at rotation 270.000000 + could not read at rotation 270.000000 w/TH + Starting src/test/resources/blackbox/qrcode-1/17.png + could not read at rotation 90.000000 + could not read at rotation 90.000000 w/TH + Starting src/test/resources/blackbox/qrcode-1/12.png + Starting src/test/resources/blackbox/qrcode-1/7.png + Starting src/test/resources/blackbox/qrcode-1/4.png + Starting src/test/resources/blackbox/qrcode-1/19.png + Starting src/test/resources/blackbox/qrcode-1/18.png + could not read at rotation 0.000000 + could not read at rotation 0.000000 w/TH + could not read at rotation 90.000000 + could not read at rotation 90.000000 w/TH + could not read at rotation 180.000000 + could not read at rotation 180.000000 w/TH + could not read at rotation 270.000000 + could not read at rotation 270.000000 w/TH + Starting src/test/resources/blackbox/qrcode-1/1.png + Starting src/test/resources/blackbox/qrcode-1/15.png + could not read at rotation 90.000000 + could not read at rotation 90.000000 w/TH + could not read at rotation 270.000000 + could not read at rotation 270.000000 w/TH + Starting src/test/resources/blackbox/qrcode-1/10.png + Starting src/test/resources/blackbox/qrcode-1/20.png + could not read at rotation 270.000000 + could not read at rotation 270.000000 w/TH + Rotation 0 degrees: + 17 of 20 images passed (17 required) + 0 failed due to misreads, 3 not detected + 17 of 20 images passed with try harder (17 required) + 0 failed due to misreads, 3 not detected + Rotation 90 degrees: + 14 of 20 images passed (14 required) + 0 failed due to misreads, 6 not detected + 14 of 20 images passed with try harder (14 required) + 0 failed due to misreads, 6 not detected + Rotation 180 degrees: + 17 of 20 images passed (17 required) + 0 failed due to misreads, 3 not detected + 17 of 20 images passed with try harder (17 required) + 0 failed due to misreads, 3 not detected + Rotation 270 degrees: + 14 of 20 images passed (14 required) + 0 failed due to misreads, 6 not detected + 14 of 20 images passed with try harder (14 required) + 0 failed due to misreads, 6 not detected + Decoded 124 images out of 160 (77%, 124 required) + + + +*/ \ No newline at end of file