Skip to content

test: add prompt_score unit tests + fix scope scoring bug - #235

Open
TerminalGravity wants to merge 1 commit into
mainfrom
test/prompt-score-tests
Open

test: add prompt_score unit tests + fix scope scoring bug#235
TerminalGravity wants to merge 1 commit into
mainfrom
test/prompt-score-tests

Conversation

@TerminalGravity

Copy link
Copy Markdown
Collaborator
  • Export scorePrompt for testability
  • Bug fix: long prompts (>100 chars) previously got max scope score (25) without any scope-bounding keywords. Now they get 20 — still rewarded for detail, but not perfect without explicit scope.
  • Add 16 unit tests covering all four scoring dimensions, grade boundaries, and feedback generation
  • Test count: 43 → 59

- Export scorePrompt for testability
- Fix: long prompts (>100 chars) no longer get max scope score (25→20)
  without explicit scope-bounding keywords
- Add 16 tests covering all scoring dimensions, grading, and feedback
- Test count: 43 → 59
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.

1 participant