Skip to content

Commit cd16711

Browse files
authored
Update test_core.py
1 parent 323ee60 commit cd16711

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/test_core.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1+
from percentify import percent
12

3+
def test_percent_normal():
4+
assert percent(50, 200) == 25.0
5+
6+
def test_percent_fraction():
7+
assert percent(1, 3) == 33.33
8+
9+
def test_percent_zero_division():
10+
assert percent(5, 0) == 0.0

0 commit comments

Comments
 (0)