hetaoBackend c59cf53770 Import MiniMax Code CLI source snapshot 2 ay önce
..
README.md c59cf53770 Import MiniMax Code CLI source snapshot 2 ay önce
clamp.mjs c59cf53770 Import MiniMax Code CLI source snapshot 2 ay önce
clamp.test.mjs c59cf53770 Import MiniMax Code CLI source snapshot 2 ay önce

README.md

Fix the clamp function

This intentionally incorrect function is a small MiniMax Code coding exercise. Copy this directory to a temporary location before trying it. Running node --test on the original version produces two failing tests.

Ask MiniMax Code to read the function and tests, reproduce the failure, fix the function, and run the tests again. Do not change the tests to make them pass.

Expected behavior: clamp(5, 0, 10) returns 5, clamp(-3, 0, 10) returns 0, and clamp(14, 0, 10) returns 10.

See the demo and recording notes.