
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}
