Exemplo n.º 1
0
def test_f_quotient():
    assert f_quotient(-1, 3) == 0
    assert f_quotient(0, 3) == 0
    assert f_quotient(1, 3) == 0
    assert f_quotient(2, 3) == 0
    assert f_quotient(3, 3) == 1
    assert f_quotient(3.123, 3) == 1
Exemplo n.º 2
0
def test_f_quotient():
    assert f_quotient(-1, 3) == 0
    assert f_quotient(0, 3) == 0
    assert f_quotient(1, 3) == 0
    assert f_quotient(2, 3) == 0
    assert f_quotient(3, 3) == 1
    assert f_quotient(3.123, 3) == 1
Exemplo n.º 3
0
def test_f_quotient_2():
    assert f_quotient(0, 1, 13) == 0
    for i in range(1, 13):
        assert f_quotient(i, 1, 13) == 0
    assert f_quotient(13, 1, 13) == 1
    assert f_quotient(13.123, 1, 13) == 1
Exemplo n.º 4
0
def test_f_quotient_2():
    assert f_quotient(0, 1, 13) == 0
    for i in range(1, 13):
        assert f_quotient(i, 1, 13) == 0
    assert f_quotient(13, 1, 13) == 1
    assert f_quotient(13.123, 1, 13) == 1