cleanup more warnings and deprecated function use

This commit is contained in:
Henry Schimke
2022-12-30 17:00:35 -06:00
parent b383d7b0d4
commit 29a4040f2d
38 changed files with 158 additions and 133 deletions

View File

@@ -84,7 +84,7 @@ mod AI013103DecoderTest {
fn test0131031() {
let data = format!(
"{}{}{}",
HEADER, compressedGtin900123456798908, compressed15bitWeight1750
HEADER, COMPRESSED_GTIN900123456798908, COMPRESSED15BIT_WEIGHT1750
);
let expected = "(01)90012345678908(3103)001750";
assertCorrectBinaryString(&data, expected);
@@ -94,7 +94,7 @@ mod AI013103DecoderTest {
fn test0131032() {
let data = format!(
"{}{}{}",
HEADER, compressedGtin900000000000008, compressed15bitWeight0
HEADER, COMPRESSED_GTIN900000000000008, COMPRESSED15BIT_WEIGHT0
);
let expected = "(01)90000000000003(3103)000000";
assertCorrectBinaryString(&data, expected);
@@ -105,7 +105,7 @@ mod AI013103DecoderTest {
fn test013103invalid() {
let data = format!(
"{}{}{}..",
HEADER, compressedGtin900123456798908, compressed15bitWeight1750
HEADER, COMPRESSED_GTIN900123456798908, COMPRESSED15BIT_WEIGHT1750
);
assertCorrectBinaryString(&data, "");
}