Пример #1
0
def test_divide_other_two_numbers():
    c = Calc()

    res = c.div(9, 2)

    assert res == 4.5
Пример #2
0
def test_div_by_zero_returns_inf():
    c = Calc()

    res = c.div(99, 0)

    assert res == 'inf'
Пример #3
0
def test_divide_two_numbers_float():
    c = Calc()

    res = c.div(13, 2)

    assert res == 6.5