rename bitmatrix test cases mod

This commit is contained in:
Henry Schimke
2023-01-11 16:02:26 -06:00
parent f037a743e7
commit fde23934f6
13 changed files with 51 additions and 32 deletions

View File

@@ -690,3 +690,19 @@ impl From<&BitMatrix> for image::DynamicImage {
pixels.into()
}
}
// impl From<BitMatrix> for Vec<u8> {
// fn from(value: BitMatrix) -> Self {
// let mut output_vector = Vec::new();
// for y in 0..value.getHeight() {
// for col in (0..value.getWidth()).step_by(8) {
// let mut byte = 0_u8;
// for x in 0..8 {
// byte |= u8::from(value.get(col+x, y)) << x
// }
// output_vector.push(byte);
// }
// }
// output_vector
// }
// }

View File

@@ -396,5 +396,3 @@ fn get_input(width: u32, height: u32) -> BitMatrix {
}
result
}
// }

View File

@@ -10,7 +10,7 @@ mod StringUtilsTestCase;
mod BitArrayTestCase;
#[cfg(test)]
pub(crate) mod BitMatrixTestCase;
pub(crate) mod bit_matrix_test_case;
#[cfg(test)]
mod BitSourceTestCase;