MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / test_negative_number

Function test_negative_number

maths/test_factorial.py:31–33  ·  view source on GitHub ↗
(function)

Source from the content-addressed store, hash-verified

29
30@pytest.mark.parametrize("function", [factorial, factorial_recursive])
31def test_negative_number(function):
32 with pytest.raises(ValueError):
33 function(-3)
34
35
36@pytest.mark.parametrize("function", [factorial, factorial_recursive])

Callers

nothing calls this directly

Calls 1

functionFunction · 0.85

Tested by

no test coverage detected