codabar_writer + test

This commit is contained in:
Henry Schimke
2022-12-10 12:46:03 -06:00
parent da16a67c04
commit b366e59e28
10 changed files with 521 additions and 368 deletions

View File

@@ -339,7 +339,7 @@ fn test_xor_case() {
// }
}
fn matrix_to_string(result: &BitMatrix) -> String {
pub fn matrix_to_string(result: &BitMatrix) -> String {
assert_eq!(1, result.getHeight());
let mut builder = String::with_capacity(result.getWidth().try_into().unwrap());
for i in 0..result.getWidth() {

View File

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