CS2613/labs/L14/test_divisive.py

11 lines
165 B
Python
Raw Normal View History

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))