def test_factorial(): """ Test factorial works properly """ assert recursion.factorial(3) == 6, 'incorrect' assert recursion.factorial(2) == 2, 'incorrect' assert recursion.factorial(5) == 120, 'incorrect'
def test_factorial(): ''' make sure factorial works correctly ''' assert recursion.factorial(5) == 120, 'incorrect' assert recursion.factorial(1) == 1, 'incorrect' assert recursion.factorial(13) == 6227020800, 'incorrect'
def test_factorial(): """ make sure factorial works correctly """ assert recursion.factorial(0) == 1, 'incorrect' assert recursion.factorial(1) == 1, 'incorrect' assert recursion.factorial(5) == 120, 'incorrect'
def factorial(n): """ retruns n! """ assert recursion.factorial(5) == 120, 'incorrect' assert recursion.factorial(11) == 39916800, 'incorrect' assert recursion.factorial(7) == 5040, 'incorrect'
def reverse(word): """ returns word in reverse """ assert recursion.reverse(nakedi) == idekan, 'incorrect' assert recursion.reverse(evol) == love, 'incorrect' assert recursion.factorial(madam) == madam, 'incorrect'
from mypackage import recursion assert recursion.factorial(3) == 6, 'incorrect'
def test_factorial(): assert recursion.factorial(5) == 120, 'Correct' assert recursion.factorial(8) == 40320, 'Correct'
def test_factorial(n): '''Test Factorial: !n''' assert recursion.factorial(2) == 2 assert recursion.factorial(5) == 120 assert recursion.factorial(7) == 5040