Ejemplo n.º 1
0
def test_solution():
    from solution import factorial_recursive

    assert factorial_recursive(5) == 120
    assert factorial_recursive(10) == 3628800
    assert factorial_recursive(1) == 1
    assert factorial_recursive(0) == 1
Ejemplo n.º 2
0
def test_solution():
    import solution
    assert solution.factorial_recursive(5) == 120
    assert solution.factorial_recursive(10) == 3628800
Ejemplo n.º 3
0
def test_solution():
    import solution
    assert solution.factorial_recursive(4) == 24
    assert solution.factorial_recursive(8) == 40320
    assert solution.factorial_recursive(0) == 1