product result parser test case fix

This commit is contained in:
Henry Schimke
2022-12-10 10:31:53 -06:00
parent 11c0ac5a81
commit 1f3247d951

View File

@@ -49,8 +49,8 @@ pub fn parse(result: &RXingResult) -> Option<ParsedClientResult> {
let normalizedProductID;
// Expand UPC-E for purposes of searching
if format == &BarcodeFormat::UPC_E && rawText.len() == 8 {
unimplemented!("UPCEReader is required to parse this");
//normalizedProductID = UPCEReader.convertUPCEtoUPCA(rawText);
// unimplemented!("UPCEReader is required to parse this");
normalizedProductID = crate::oned::convertUPCEtoUPCA(&rawText);
} else {
normalizedProductID = rawText.clone();
}