Skip to content

Commit cef2fe9

Browse files
authored
Merge pull request #199 from isuruf/flint
Test Flint INTEGER_CLASS
2 parents c629ca0 + d00b7cb commit cef2fe9

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ env:
3535
- PYTHON_VERSION="3.3" WITH_MPC="yes"
3636
- PYTHON_VERSION="3.4" WITH_MPFR="yes"
3737
- PYTHON_VERSION="3.5" WITH_MPC="yes"
38-
- PYTHON_VERSION="3.6" WITH_MPC="yes"
38+
- PYTHON_VERSION="3.6" WITH_MPC="yes" INTEGER_CLASS="flint" WITH_FLINT="yes"
3939

4040
matrix:
4141
exclude:
@@ -78,7 +78,7 @@ matrix:
7878
- env: BUILD_TYPE="Debug" PYTHON_VERSION="2.7" WITH_NUMPY="no"
7979
compiler: gcc
8080
os: osx
81-
- env: BUILD_TYPE="Release" PYTHON_VERSION="3.5"
81+
- env: BUILD_TYPE="Release" PYTHON_VERSION="3.5" INTEGER_CLASS="flint" WITH_FLINT="yes"
8282
compiler: gcc
8383
os: osx
8484
- env: BUILD_TYPE="Release" WITH_SAGE="yes" WITH_MPC="yes" PYTHON_VERSION="2.7"

symengine/tests/test_ntheory.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ def test_gcd_ext():
3737
assert p == q * 6 + r * 9
3838
(q, r, p) = gcd_ext(-15, 10)
3939
assert p == q * -15 + r * 10
40-
assert gcd_ext(2, 3) == (-1, 1, 1)
41-
assert gcd_ext(10, 12) == (-1, 1, 2)
42-
assert gcd_ext(100, 2004) == (-20, 1, 4)
40+
(q, r, p) = gcd_ext(2, 3)
41+
assert p == q * 2 + r * 3
42+
assert p == 1
43+
(q, r, p) = gcd_ext(10, 12)
44+
assert p == q * 10 + r * 12
45+
assert p == 2
46+
(q, r, p) = gcd_ext(100, 2004)
47+
assert p == q * 100 + r * 2004
48+
assert p == 4
4349

4450

4551
def test_mod():

0 commit comments

Comments
 (0)