mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
Strengthen test examples prompt to emphasize behavioral correctness
Reworded to highlight that hand-written unit tests encode the developer's explicit behavioral expectations and that optimizations must produce identical results for all test cases.
This commit is contained in:
parent
ccfe0998e7
commit
f9c6376f14
1 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
Here are example test inputs and expected outputs for the function you are optimizing. Your optimization MUST preserve the same behavior for these inputs.
|
||||
Here are tests that define the expected behavior of the function you are optimizing. Your optimization MUST produce identical results for all these test cases.
|
||||
|
||||
Pay special attention to hand-written unit tests — they encode the developer's explicit behavioral expectations and edge cases. Any optimization that changes the output for these inputs is incorrect.
|
||||
|
||||
{test_input_examples}
|
||||
|
|
|
|||
Loading…
Reference in a new issue