Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion factorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ def factorial(n):
output = 0
for i in range(n):
output *= i
return output
return output
6 changes: 3 additions & 3 deletions test_factorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

from factorial import factorial

def test_factorial():
def test_factorial_6():
assert 6 == factorial(3)

def test_factorial():
def test_factorial_4():
assert 24 == factorial(4)

def test_factorial():
def test_factorial_5():
assert 120 == factorial(5)