Added more tests

This commit is contained in:
Fireblade2534 2025-05-01 18:02:35 +00:00
parent 48e096b441
commit f89b76d5d6
2 changed files with 10 additions and 0 deletions

View file

@ -206,6 +206,11 @@ def test_time():
== "It is currently three o'clock" == "It is currently three o'clock"
) )
assert (
normalize_text("12:00 am is midnight", normalization_options=NormalizationOptions())
== "twelve am is midnight"
)
def test_number(): def test_number():
"""Test number normalization""" """Test number normalization"""
@ -244,6 +249,11 @@ def test_number():
== "He made minus fifty sales today." == "He made minus fifty sales today."
) )
assert (
normalize_text("56.789 to the power of 1.35 million", normalization_options=NormalizationOptions())
== "fifty-six point seven eight nine to the power of one point three five million"
)
def test_non_url_text(): def test_non_url_text():
"""Test that non-URL text is unaffected""" """Test that non-URL text is unaffected"""
assert ( assert (

Binary file not shown.