L2 · Required

Testing and edge cases

Use testing and edge cases to make decisions inspectable.

What you should be able to do

Independently: Design normal, empty, boundary and invalid-input tests.

Suggested prerequisites

A short guide

Use testing and edge cases to make decisions inspectable. Design normal, empty, boundary and invalid-input tests. Read the indicated source section, identify its key concepts and conditions, and work through the example. Record inputs, sources, units and assumptions. Keep your method separate from the result, mark unanswered questions, and review the output against the checklist.

An example

An absolute-value function needs negative, zero and positive tests.

Your task

Design normal, empty, boundary and invalid-input tests.

Start with this source

Read the indicated section relevant to testing and edge cases and complete the applied task.

This source is awaiting renewed review. Try the task above and adjacent skills; reviewed sources will appear here.

Your learning checklist

Required items: 0 / 10 completed or already known

Device storage

Next: Read a role through its responsibilities

Checklist statuses are self-reported; exercise scores are recorded separately. You can reset any item.

Self-check

Try a practice set

Calculations and choices receive immediate checks. Review open responses yourself against the rubric. All examples are educational.

1. What is the sum obtained by iterating over [2, 3, 5]?
2. Which test belongs with a fix for dividing by list length?
3. After the interfaces and error handling task, state one assumption, one supporting fact and one condition that would change your conclusion.