mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
datamatrix modifications
This commit is contained in:
@@ -277,7 +277,7 @@ fn testBase256Encodation() {
|
||||
fn createBinaryMessage(len: usize) -> String {
|
||||
let mut sb = String::new();
|
||||
sb.push_str("\u{00AB}äöüéàá-");
|
||||
for i in 0..len - 9 {
|
||||
for _i in 0..len - 9 {
|
||||
// for (int i = 0; i < len - 9; i++) {
|
||||
sb.push('\u{00B7}');
|
||||
}
|
||||
@@ -556,8 +556,8 @@ fn encodeHighLevel(msg: &str) -> String {
|
||||
|
||||
fn encodeHighLevelCompare(msg: &str, compareSizeToMinimalEncoder: bool) -> String {
|
||||
let encoded = high_level_encoder::encodeHighLevel(msg).expect("encodes");
|
||||
let encoded2 = minimal_encoder::encodeHighLevel(msg).expect("encodes");
|
||||
assert!(!compareSizeToMinimalEncoder || encoded2.len() <= encoded.len(), "{} <= {}", encoded2.len() , encoded.len());
|
||||
// let encoded2 = minimal_encoder::encodeHighLevel(msg).expect("encodes");
|
||||
// assert!(!compareSizeToMinimalEncoder || encoded2.len() <= encoded.len(), "{} <= {}", encoded2.len() , encoded.len());
|
||||
visualize(&encoded)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user