This commit is contained in:
Kevin
2026-04-28 10:41:48 +08:00
parent 482b016872
commit 15884bd68e
60 changed files with 2092 additions and 1994 deletions

View File

@@ -34,8 +34,9 @@ def test_parse_voice_choice_negative() -> None:
def test_build_prompt_contains_options() -> None:
text = build_prompt_text([("纱布", 0.4), ("缝线", 0.3)])
assert "纱布" in text
assert "缝线" in text
assert text.startswith("请确认以下耗材。")
assert "第1个纱布。" in text
assert "第2个缝线。" in text
def test_match_voice_against_full_candidate_list() -> None: