Home / Learn / Mock Interviews / Advanced patterns
Lesson 3 of 5

Advanced patterns: Mock Interviews

In this lesson you will use Test Generator to edge-case tests that answer 'what would you test?'.

What you'll learn

Generate an edge-case test suite for any solution: empty inputs, single elements, duplicates, sorted and reverse-sorted data, integer boundaries, and the adversarial cases specific to the algorithm. Each test states what it guards against, so when the interviewer asks 'what would you test?' you have a considered answer instead of 'uh, empty array?'

Hands-on

  1. Open Test Generator in the workspace.
  2. Configure it for the Mock Interviews workflow below.
  3. Run it on your own data and check the telemetry.

Why it matters

Neither incumbent generates tests; the question 'what would you test?' comes up in most coding rounds, and this feature exists solely to answer it well.

Practice in the workspace →