Files
park-desktop/backend/vendor/s2s-cloud/tests/test_llm_utils.py
T
Pine b681eac2df feat: 大屏后端(FastAPI+MQTT+sim_engine)
- REST :10085 / MQTT 控制 / SSE 回退 / AI+语音
- 数据源规划:接核心服务端 + 算力引擎真实数据
2026-08-23 22:35:05 +08:00

10 lines
383 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from speech_to_speech.LLM.utils import remove_unspeechable
def test_remove_unspeechable_normalizes_smart_apostrophes() -> None:
assert remove_unspeechable("I’ll reply if here’s the plan.") == "I'll reply if here's the plan."
def test_remove_unspeechable_keeps_text_and_drops_emoji() -> None:
assert remove_unspeechable("Hello 👋 lobster 🦞") == "Hello lobster "