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:
Kevin Turcios 2026-04-21 17:06:40 -05:00
parent ccfe0998e7
commit f9c6376f14

View file

@ -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}