We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da6aac commit adcf70bCopy full SHA for adcf70b
src/flint/test/test_all.py
@@ -102,9 +102,13 @@ def test_fmpz():
102
for i in L:
103
print(3, i, flush=True)
104
f = flint.fmpz(i)
105
+ print(3.1, i, flush=True)
106
assert int(f) == i
107
+ print(3.2, i, flush=True)
108
assert flint.fmpz(f) == f
109
+ print(3.3, i, flush=True)
110
assert flint.fmpz(str(i)) == f
111
+ print(3.4, i, flush=True)
112
print(4, flush=True)
113
assert raises(lambda: flint.fmpz(1,2), TypeError) # type: ignore
114
assert raises(lambda: flint.fmpz("qwe"), ValueError)
0 commit comments