Пример #1
0
def test2(capsys):
    out = opgave8_3.leibniz(2)
    assert pytest.approx(out, 0.000000001) == 2.666666666666667
Пример #2
0
def test1(capsys):
    out = opgave8_3.leibniz(1)
    assert pytest.approx(out, 0.000000001) == 4.0
Пример #3
0
def test50(capsys):
    out = opgave8_3.leibniz(50)
    assert pytest.approx(out, 0.000000001) == 3.121594652591011
Пример #4
0
def test5(capsys):
    out = opgave8_3.leibniz(5)
    assert pytest.approx(out, 0.000000001) == 3.3396825396825403
Пример #5
0
def test4(capsys):
    out = opgave8_3.leibniz(4)
    assert pytest.approx(out, 0.000000001) == 2.8952380952380956
Пример #6
0
def test3(capsys):
    out = opgave8_3.leibniz(3)
    assert pytest.approx(out, 0.000000001) == 3.466666666666667