예제 #1
0
def test_get_pi_with_bigfloat():
    # the last digit is rounded in both cases,
    # so it's cut off
    etalon = pi.get_pi(181)[:-1]
    result = pi.get_pi_with_bigfloat(600)[:-1]
    assert result == etalon
예제 #2
0
def test_get_pi_with_bigfloat():
    # the last digit is rounded in both cases,
    # so it's cut off
    etalon = pi.get_pi(181)[:-1]
    result = pi.get_pi_with_bigfloat(600)[:-1]
    assert result == etalon
예제 #3
0
def test_get_pi():
    etalon = pi.get_digits(200)
    result = pi.get_pi(200)
    assert result == etalon
예제 #4
0
def test_get_pi():
    etalon = pi.get_digits(200)
    result = pi.get_pi(200)
    assert result == etalon