def test_factorial(): assert factorial.fact(4) == 4 * 3 * 2 * 1
def test_factorial_zero(): assert factorial.fact(0) == 1
def test_xfact(): assert factorial.fact(4)==24
def test_int(): assert type(factorial.fact(5)) is int
def test_factorial_with_0(): assert factorial.fact(0) == 1
def test_factorial_with_5(): assert factorial.fact(5) == 120
def test_factorial_1(): assert factorial.fact(0) == 1
def test_factorial_2(): assert factorial.fact(3) == 6
def test_factorial(): assert factorial.fact(2)==2
def test_zero_factorial(): assert factorial.fact(0)==1
def test_factorial_string(): with pytest.raises(Exception): assert fact("hello")
def test_factorial_4(): assert fact(4) == 24
def test_factorial_negative(): assert fact(-3) == "Invalid input"