diff options
| author | J08nY | 2024-07-11 17:23:31 +0200 |
|---|---|---|
| committer | J08nY | 2024-07-11 17:23:31 +0200 |
| commit | 63024fd9395f2e6a5712226773f012091ea85edb (patch) | |
| tree | 2518918f48155e5ae23115682b9f0390e4a5a4c9 /test/ec | |
| parent | 43e105655bd2de6b64ddb3c4ddf4b965bc196e6b (diff) | |
| download | pyecsca-63024fd9395f2e6a5712226773f012091ea85edb.tar.gz pyecsca-63024fd9395f2e6a5712226773f012091ea85edb.tar.zst pyecsca-63024fd9395f2e6a5712226773f012091ea85edb.zip | |
Add support for python-flint-based Mod.
Diffstat (limited to 'test/ec')
| -rwxr-xr-x | test/ec/perf_formula.py | 2 | ||||
| -rwxr-xr-x | test/ec/perf_mod.py | 2 | ||||
| -rwxr-xr-x | test/ec/perf_mult.py | 2 | ||||
| -rw-r--r-- | test/ec/test_mod.py | 1 |
4 files changed, 3 insertions, 4 deletions
diff --git a/test/ec/perf_formula.py b/test/ec/perf_formula.py index 0a5f2a0..7adf369 100755 --- a/test/ec/perf_formula.py +++ b/test/ec/perf_formula.py @@ -12,7 +12,7 @@ from test.utils import Profiler @click.option( "-m", "--mod", - type=click.Choice(("python", "gmp")), + type=click.Choice(("python", "gmp", "flint")), default="gmp" if has_gmp else "python", ) @click.option("-o", "--operations", type=click.INT, default=5000) diff --git a/test/ec/perf_mod.py b/test/ec/perf_mod.py index 6a83314..f77c6bb 100755 --- a/test/ec/perf_mod.py +++ b/test/ec/perf_mod.py @@ -11,7 +11,7 @@ from test.utils import Profiler @click.option( "-m", "--mod", - type=click.Choice(("python", "gmp")), + type=click.Choice(("python", "gmp", "flint")), default="gmp" if has_gmp else "python", ) @click.option("-o", "--operations", type=click.INT, default=100000) diff --git a/test/ec/perf_mult.py b/test/ec/perf_mult.py index d5e6a83..2038b57 100755 --- a/test/ec/perf_mult.py +++ b/test/ec/perf_mult.py @@ -16,7 +16,7 @@ from test.utils import Profiler @click.option( "-m", "--mod", - type=click.Choice(("python", "gmp")), + type=click.Choice(("python", "gmp", "flint")), default="gmp" if has_gmp else "python", ) @click.option("-o", "--operations", type=click.INT, default=50) diff --git a/test/ec/test_mod.py b/test/ec/test_mod.py index 7234816..9a6cef0 100644 --- a/test/ec/test_mod.py +++ b/test/ec/test_mod.py @@ -157,7 +157,6 @@ def test_other(): assert 5 // b == Mod(4, 7) assert a / 3 == Mod(4, 7) assert a // 3 == Mod(4, 7) - assert divmod(a, b) == (Mod(1, 7), Mod(2, 7)) assert a + b == Mod(1, 7) assert 5 + b == Mod(1, 7) assert a + 3 == Mod(1, 7) |
