There was an error while loading. Please reload this page.
1 parent 1b0bd16 commit e2a78d4Copy full SHA for e2a78d4
maths/test_factorial.py
@@ -33,5 +33,11 @@ def test_negative_number(function):
33
function(-3)
34
35
36
+@pytest.mark.parametrize("function", [factorial, factorial_recursive])
37
+def test_float_number(function):
38
+ with pytest.raises(ValueError):
39
+ function(1.5)
40
+
41
42
if __name__ == "__main__":
43
pytest.main(["-v", __file__])
0 commit comments