switch grey convert method

This commit is contained in:
Henry Schimke
2022-10-12 10:41:49 -05:00
parent 990a3f6727
commit 3602f9c2e8
6 changed files with 165 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ fn test_uri() {
#[test]
fn test_unicode() {
test_encode_decode("💸🎲🪜");
test_encode_decode("\u{11D4}\u{1185}\u{11c2}");
}
fn test_encode_decode(value: &str) {

View File

@@ -288,7 +288,7 @@ impl AlignmentPatternFinder {
) -> Option<AlignmentPattern> {
let stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2];
let centerJ = Self::centerFromEnd(stateCount, j);
let centerI = self.crossCheckVertical(
let centerI = self.crossCheckVertical(
i,
centerJ.floor() as u32,
2 * stateCount[1],