Loading exercise...

Exercise: Write Tests That Catch Bugs

Avatar image for Geronimo Orozco

Geronimo Orozco on Oct. 11, 2026

test case is only one more line with a possible input, not a new test function.

Avatar image for Bartosz Zaczyński

Bartosz Zaczyński RP Team on Oct. 16, 2026

@Geronimo Orozco thanks for the note. If I understand you correctly, this is about the bonus check for negative numbers? Its hint asks for “a case that uses a negative number”, but the grader only runs test_addition() and test_subtraction(). So a negative input in a separate test function doesn’t count, while an extra assert line inside one of the existing functions does:

def test_addition():
    assert calculator.add(10, 5) == 15
    assert calculator.add(-3, 5) == 2

The instructions could be clearer about that, so I’ll pass it on to the rest of the team. Let me know if I misunderstood what you meant :)

Become a Member to join the conversation.