aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca
diff options
context:
space:
mode:
authorJ08nY2023-08-31 13:11:47 +0200
committerJ08nY2023-08-31 13:11:47 +0200
commit70cc34a335ffe8b839c0c930b1e5c199cd975e80 (patch)
treee1b8785616e1e076a3879e6707c793601b67fc0f /pyecsca
parent041dd156007606be4df9d3eb16e9f0bd838bccdc (diff)
downloadpyecsca-70cc34a335ffe8b839c0c930b1e5c199cd975e80.tar.gz
pyecsca-70cc34a335ffe8b839c0c930b1e5c199cd975e80.tar.zst
pyecsca-70cc34a335ffe8b839c0c930b1e5c199cd975e80.zip
Improve point test coverage.
Diffstat (limited to 'pyecsca')
-rw-r--r--pyecsca/ec/point.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/ec/point.py b/pyecsca/ec/point.py
index b63c924..f682225 100644
--- a/pyecsca/ec/point.py
+++ b/pyecsca/ec/point.py
@@ -44,7 +44,7 @@ class Point:
def __init__(self, model: CoordinateModel, **coords: Mod):
if not set(model.variables) == set(coords.keys()):
- raise ValueError
+ raise ValueError(f"Wrong coordinate values for coordinate model, expected {model.variables} got {coords.keys()}.")
self.coordinate_model = model
self.coords = coords
field = None
@@ -239,7 +239,7 @@ class InfinityPoint(Point):
return self == other
def __iter__(self):
- pass
+ yield from tuple()
def __len__(self):
return 0