Mathematics I / Reproducibility and Good Practice
Practice question · Numerical answer

A test suite contains 40 unit tests, of which 36 passed before a change. The change makes 3 previously passing tests fail and fixes 1 previously failing test. How many tests pass now?

Hints
  1. Start from 36, then apply both effects of the change.
  2. Three fewer passes, one more pass.
Show the answer

34

Why

36 - 3 + 1 = 34. The net loss of two hides the fact that something was also fixed, which is exactly why the suite reports individual test names rather than a single score.

Read the lesson: Reproducibility and Good Practice →

Practise Reproducibility and Good Practice

The app has 5 more questions on this lesson, and keeps your place in the course. Mathematics I is free to start.

More questions on Reproducibility and Good Practice