feat(normalizer): roman-numeral month matcher
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -63,3 +63,9 @@ def test_parse_leading_qualifier_is_approx():
|
||||
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
|
||||
|
||||
def test_parse_roman_months():
|
||||
assert dates.parse_date("22.III.18").iso == "1918-03-22"
|
||||
assert dates.parse_date("19.XII.1954").iso == "1954-12-19"
|
||||
assert dates.parse_date("1.III.27").iso == "1927-03-01"
|
||||
assert dates.parse_date("22.III.18").precision == Precision.DAY
|
||||
|
||||
Reference in New Issue
Block a user