aboutsummaryrefslogtreecommitdiff
path: root/test/ec/test_divpoly.py
diff options
context:
space:
mode:
authorJ08nY2024-07-11 17:53:14 +0200
committerJ08nY2024-07-11 17:53:14 +0200
commit52fb26495a47fb80d66dc84f34a2494e4356516c (patch)
treef61625704bd199a910f1c61d669d4d1280888dd9 /test/ec/test_divpoly.py
parent75e07957eabfb4129eefe8c2b4e34cf38f556b2a (diff)
downloadpyecsca-52fb26495a47fb80d66dc84f34a2494e4356516c.tar.gz
pyecsca-52fb26495a47fb80d66dc84f34a2494e4356516c.tar.zst
pyecsca-52fb26495a47fb80d66dc84f34a2494e4356516c.zip
Diffstat (limited to 'test/ec/test_divpoly.py')
-rw-r--r--test/ec/test_divpoly.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ec/test_divpoly.py b/test/ec/test_divpoly.py
index 44134de..76b5f29 100644
--- a/test/ec/test_divpoly.py
+++ b/test/ec/test_divpoly.py
@@ -165,8 +165,8 @@ def test_mult_by_n(secp128r1):
}
mx, my = mult_by_n(secp128r1.curve, 2)
mx_num, mx_denom = mx
- assert coeffs_mx_num == list(map(lambda x: K.from_sympy(x), mx_num.all_coeffs()))
- assert coeffs_mx_denom == list(map(lambda x: K.from_sympy(x), mx_denom.all_coeffs()))
+ assert coeffs_mx_num == list(map(K.from_sympy, mx_num.all_coeffs()))
+ assert coeffs_mx_denom == list(map(K.from_sympy, mx_denom.all_coeffs()))
my_num, my_denom = my
assert {i: K.from_sympy(d) for i, d in my_num.as_dict().items()} == coeffs_my_num
assert {i: K.from_sympy(d) for i, d in my_denom.as_dict().items()} == coeffs_my_denom