Skip to lesson
  1. Learn
  2. See
  3. Try
  4. Make

Find the input that breaks it

What this lesson is about

Try the empty case, the huge case, and the case in another script. Most code fails on one of them.

Your friend's attendance app works, and she shows it to a teacher in ten minutes. What do you type into it?

Why this matters

Most code is tested on the input its author already had in mind. The failures live just outside that: an empty box, a very long name, a name in another script. Finding one in ten minutes is worth more than an hour of reading.

Lesson 6 of 10 on Coding for evaluation worknextCompare two code answers fairlyPart 2 ends in a work sample you can sendThe rules this work sample is read against

Read the primary or official source: Python documentation · unittest