(function)
| 17 | |
| 18 | @pytest.mark.parametrize("function", [factorial, factorial_recursive]) |
| 19 | def 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]) |
nothing calls this directly
no test coverage detected