Write the test before you accept the fix

Write the test before you accept the fix is a Pro Coding with AI practice rep on Get AI Reps. The AI says it fixed is_leap_year(). It used to return True for 1900. You do the task on this page, and it is graded instantly against a fixed checklist. It is part of Pro: $12 a month or $99 a year.

Track Coding with AIDifficulty Hard+25 XPWrite itPRO
get-ai-reps / prompting / rep-1
0 reps done
All reps

What you practice

Debug, review and ship AI-written code safely.

Write your own answer. It must pass every check on this list:

  • 4+ asserts
  • 1900 is not a leap year
  • 2000 is a leap year
  • A normal leap year is True
  • A normal year is False

Keep going