Skip to content

test: cover non-numeric STT mismatch as medium misheard - #8

Open
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:test/non-numeric-misheard
Open

test: cover non-numeric STT mismatch as medium misheard#8
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:test/non-numeric-misheard

Conversation

@AshSgDe29071999

Copy link
Copy Markdown

Summary

check_misheard has two branches: high misheard_number when digits/number-words differ, and medium misheard when the transcript differs but numbers still match. Only the high path was covered.

Case covered

  • STT text differs from truth while number tokens are identical (e.g. “shirt” vs “shoes” around the same “fifteen”)
  • Expects exactly one medium misheard finding and no misheard_number

Test plan

  • pytest -q → 19 passed

Fixes #2

When truth differs but extracted numbers still match, check_misheard
takes the medium `misheard` branch rather than high misheard_number.
That path had no test; pin it so a future change cannot collapse the
two severities.

Fixes AgentPostmortem#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a test for an untested edge case

1 participant