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

Function test_zero

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

Source from the content-addressed store, hash-verified

12
13@pytest.mark.parametrize("function", [factorial, factorial_recursive])
14def test_zero(function):
15 assert function(0) == 1
16
17
18@pytest.mark.parametrize("function", [factorial, factorial_recursive])

Callers

nothing calls this directly

Calls 1

functionFunction · 0.85

Tested by

no test coverage detected