def test_ten_pt_six_div_by_two(): """ tests if calculator2 accurately divides 10.6 by 2 to get 5.3 """ assert divide(10.6, 2) == 5.3
def test_eighty_divided_by_ten(): """ tests if calculator2 accurately divides 80 / 8 to get 10 """ assert divide(80, 8) == 10
def test_five_divided_by_zero(): """ tests if calculator2 accurately divides 5/0 to get an "undefined" result """ assert divide(5, 0) == ZeroDivisionError
def test_no_division_parameters(): """ tests if calculator2 accurately returns an undefined value when values are presented """ assert divide() == IndexError
def test_90_div_3_div_neg_5(): """ tests if calculator2 accurately divides 90 / 3 / -5 to get -6 """ assert divide(90, 3, -5) == -6
def test_90_div_3_div_5_div_2(): """ tests if calculator2 accurately divides 90 / 3 / 5 / 2 to get 3 """ assert divide(90, 3, 5, 2) == 3