diff options
| author | J08nY | 2025-03-20 10:01:50 +0100 |
|---|---|---|
| committer | J08nY | 2025-03-20 10:01:50 +0100 |
| commit | 3169390d69e41ba07f7825efc78c86284f3cb4e1 (patch) | |
| tree | 3d8e6f8e057b98adbee0196f3810c6c657129794 /test/ec | |
| parent | 49ea01816d5e4acaa8996da04072936206bbb58f (diff) | |
| download | pyecsca-3169390d69e41ba07f7825efc78c86284f3cb4e1.tar.gz pyecsca-3169390d69e41ba07f7825efc78c86284f3cb4e1.tar.zst pyecsca-3169390d69e41ba07f7825efc78c86284f3cb4e1.zip | |
Diffstat (limited to 'test/ec')
| -rw-r--r-- | test/ec/test_mod.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ec/test_mod.py b/test/ec/test_mod.py index 07f5bdf..18eeeac 100644 --- a/test/ec/test_mod.py +++ b/test/ec/test_mod.py @@ -20,6 +20,7 @@ from pyecsca.ec.mod import ( jacobi, ) from pyecsca.ec.mod.gmp import has_gmp +from pyecsca.ec.mod.flint import has_flint from pyecsca.misc.cfg import getconfig, TemporaryConfig @@ -149,6 +150,7 @@ def test_other(): b = mod(3, 7) assert int(-a) == 2 assert str(a) == "5" + assert f"{a:02x}" == "05" assert 6 - a == mod(1, 7) assert a != b assert a / b == mod(4, 7) @@ -199,7 +201,7 @@ def test_undefined(): def test_implementation(): - if not has_gmp: + if not has_gmp or has_flint: pytest.skip("Only makes sense if more Mod implementations are available.") with TemporaryConfig() as cfg: cfg.ec.mod_implementation = "python" |
