mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 05:40:26 +02:00
feat: Implement existing item lookup and overwrite handling for Audiobookshelf uploads
This commit is contained in:
@@ -86,6 +86,16 @@ def test_simple_fractions_are_spoken() -> None:
|
||||
assert "one half" in normalized.lower()
|
||||
|
||||
|
||||
def test_plain_numbers_are_spelled_out() -> None:
|
||||
normalized = _normalize_for_pipeline("He rolled a 42.")
|
||||
assert "forty-two" in normalized.lower()
|
||||
|
||||
|
||||
def test_space_separated_numbers_become_ranges() -> None:
|
||||
normalized = _normalize_for_pipeline("Read pages 12 14 tonight.")
|
||||
assert "pages twelve to fourteen" in normalized.lower()
|
||||
|
||||
|
||||
def test_contractions_can_be_kept_when_override_disabled() -> None:
|
||||
normalized = _normalize_for_pipeline(
|
||||
"It's a good day.",
|
||||
|
||||
Reference in New Issue
Block a user