Esempio n. 1
0
def test2(capsys):
    out = opgave8_6.binom(6, 3)
    assert out == pytest.approx(20, 0.0000001)
Esempio n. 2
0
def test1(capsys):
    out = opgave8_6.binom(1, 1)
    assert out == pytest.approx(1, 0.0000001)
Esempio n. 3
0
def test6(capsys):
    out = opgave8_6.binom(5, 7)
    assert out == pytest.approx(0, 0.0000001)
Esempio n. 4
0
def test5(capsys):
    out = opgave8_6.binom(1, -10)
    assert out == pytest.approx(0, 0.0000001)
Esempio n. 5
0
def test4(capsys):
    out = opgave8_6.binom(-1, 1)
    assert out == pytest.approx(0, 0.0000001)
Esempio n. 6
0
def test3(capsys):
    out = opgave8_6.binom(9, 4)
    assert out == pytest.approx(126, 0.0000001)