mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
Added more tests
This commit is contained in:
parent
48e096b441
commit
f89b76d5d6
2 changed files with 10 additions and 0 deletions
|
@ -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 (
|
||||||
|
|
BIN
outputstream.wav
BIN
outputstream.wav
Binary file not shown.
Loading…
Add table
Reference in a new issue