def test_bad_fac_negative(): with pytest.raises(ValueError): _ = bad_fac(-1)
def test_bad_fac_1(): assert bad_fac(1) == 1
def test_bad_fac_5(): assert bad_fac(5) == 120
def test_bad_fac_3(): assert bad_fac(3) == 6
def test_bad_fac_0(): assert bad_fac(0) == 1