Debugging problems

Repair the test · Level 4

The sort test passes with names out of order

Sort the contacts from Z to A. The top and bottom names look right. Two names in the middle can be out of order while the test passes.

What you will practise

Sorting the values your test reads can hide a sorting mistake on the page.

Done when

  • Sort the full contacts list from Z to A.
  • Check the displayed order from the first name to the last.

Read the brief here. Use a computer with a keyboard to write and run tests.

$19 per month

This problem, 16 more like it, 175 lessons and 10 AI interviews a month.