AI-assisted engineering/Legacy comprehension + AI

Pin dispatch_in_days before the cutoff moves

Legacy comprehension + AIEasy15 min

The site promises same-day dispatch for orders placed by 2 pm. The warehouse code keeps its own hours.

Your task

Pin what dispatch_in_days does today. Not what the site says. What the code does.

  • fill REGRESSION_TESTS with cases: the arguments in, the value it returns today
  • a test that expects the RIGHT answer instead of the CURRENT one fails the clean run
  • at submit each test runs again against versions of the function with one line changed
  • a change your tests do not notice is behavior you left unpinned

The suite runs your tests against the untouched code, then against mutations you have not seen.