CS2613/labs/L14/test_divisive.py
2022-10-31 09:58:30 -03:00

11 lines
165 B
Python

from divisive import fraction
import math
def test_fraction_int():
assert fraction(4, 2) == 2
def test_fraction_NaN():
assert math.isnan(fraction(4, 0))