Example #1
0
def test_div_zero():
    with pytest.raises(ZeroDivisionError):
        result = m.div(558, 0)
Example #2
0
def test_div_float():
    result = m.div(558, 2.)
    assert result == 558 / 2.
Example #3
0
def test_div_float_2():
    result = m.div(558.444, 221.1)
    assert result == 558.444 / 221.1
Example #4
0
def test_div():
    result = m.div(558, 221)
    assert result == 558 / 221