Skip to content

One or many

textAll subjects

Four lines, one comparison, two possible answers. It is the smallest piece of real code in the corpus, which makes it the right place to see what a suite is and is not claiming — there is nowhere for a gap to hide behind complexity.

The module under test

1
export function label(count) {
2
if (count > 1) {
3
return "many";
4
}
5
return "one";
6
}
7

Your tests

Mutants

Mutation score
Survived
0
Killed
0 / 0
Line coverage
Tests
0
Assertion width
Cycle
    survivedkilledtimed outequivalentnot run