This commit is contained in:
Yaojia Wang
2026-02-12 23:06:00 +01:00
parent ad5ed46b4c
commit 58d36c8927
26 changed files with 3903 additions and 2551 deletions

View File

@@ -213,8 +213,8 @@ class TestNormalizeOCR:
assert ' ' not in result.value # Spaces should be removed
def test_short_ocr_invalid(self, normalizer):
"""Test that too short OCR is invalid."""
result = normalizer.normalize("123")
"""Test that single-digit OCR is invalid (min 2 digits)."""
result = normalizer.normalize("5")
assert result.is_valid is False