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

Function test_positive_integers

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

Source from the content-addressed store, hash-verified

17
18@pytest.mark.parametrize("function", [factorial, factorial_recursive])
19def test_positive_integers(function):
20 assert function(1) == 1
21 assert function(5) == 120
22 assert function(7) == 5040
23
24
25@pytest.mark.parametrize("function", [factorial, factorial_recursive])

Callers

nothing calls this directly

Calls 1

functionFunction · 0.85

Tested by

no test coverage detected