fix(normalizer): keep Task 5 scoped — drop year-only matcher (belongs to Task 8)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,6 @@ def test_parse_approx_marker_upgrades_precision():
|
||||
assert r.precision == Precision.UNKNOWN # no month-name matcher until Task 7; full APPROX check in Task 8
|
||||
|
||||
def test_parse_leading_qualifier_is_approx():
|
||||
r = dates.parse_date("nach 1900") # "after 1900" -> year salvaged, but precision is APPROX not exact
|
||||
assert r.iso == "1900-01-01"
|
||||
r = dates.parse_date("nach 1.5.1900") # qualifier stripped, numeric date salvaged, precision APPROX
|
||||
assert r.iso == "1900-05-01"
|
||||
assert r.precision == Precision.APPROX
|
||||
|
||||
Reference in New Issue
Block a user