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
def test_get_pi(): etalon = pi.get_digits(200) result = pi.get_pi(200) assert result == etalon