A prompt addition for generated tests: list ambiguities first, label each expected value’s source
Problem: when a model writes both a function and its tests in one session, the tests tend to share the code’s reading of the requirement, so a green run says little about whether the requirement was understood. Example requirement: “Apply 8.25% tax to the invoice, rounded to the nearest cent.” Two…
Read the full story at r/PromptEngineering ↗
Timeline · 1 report
- 2026-10-25 01:57 · r/PromptEngineering
A prompt addition for generated tests: list ambiguities first, label each expected value’s source