diff options
| author | J08nY | 2021-01-06 19:12:31 +0100 |
|---|---|---|
| committer | J08nY | 2021-01-06 19:19:13 +0100 |
| commit | 31aaaf5aa0182081a719ed5d9671012c463742bf (patch) | |
| tree | e2e21f4e0515bfeb149a5abe1d8eaeaf199e1985 | |
| parent | bb3ad6b5edafb26309514a0d59e9ba8bc2d5c19f (diff) | |
| download | pyecsca-31aaaf5aa0182081a719ed5d9671012c463742bf.tar.gz pyecsca-31aaaf5aa0182081a719ed5d9671012c463742bf.tar.zst pyecsca-31aaaf5aa0182081a719ed5d9671012c463742bf.zip | |
Pin sympy version requirement. Extend regression test for #9.
| -rw-r--r-- | setup.py | 2 | ||||
| -rw-r--r-- | test/ec/test_regress.py | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -29,7 +29,7 @@ setup( install_requires=[ "numpy", "scipy", - "sympy", + "sympy>=1.7.1", "atpublic", "cython", "fastdtw", diff --git a/test/ec/test_regress.py b/test/ec/test_regress.py index 26ef921..9d0d5a3 100644 --- a/test/ec/test_regress.py +++ b/test/ec/test_regress.py @@ -49,6 +49,12 @@ class RegressionTests(TestCase): formula = coords.formulas["dbl-1987-m-2"] res = formula(base, **curve.parameters)[0] self.assertIsNotNone(res) + affine_base = Point(AffineCoordinateModel(model), x=Mod(12, p), y=Mod(2, p)) + dbase = curve.affine_double(affine_base).to_model(coords, curve) + ladder = coords.formulas["ladd-1987-m-3"] + one, other = ladder(base, dbase, base, **curve.parameters) + self.assertIsNotNone(one) + self.assertIsNotNone(other) def test_issue_10(self): model = EdwardsModel() |
