diff options
| author | J08nY | 2023-08-31 13:11:47 +0200 |
|---|---|---|
| committer | J08nY | 2023-08-31 13:11:47 +0200 |
| commit | 70cc34a335ffe8b839c0c930b1e5c199cd975e80 (patch) | |
| tree | e1b8785616e1e076a3879e6707c793601b67fc0f /pyecsca | |
| parent | 041dd156007606be4df9d3eb16e9f0bd838bccdc (diff) | |
| download | pyecsca-70cc34a335ffe8b839c0c930b1e5c199cd975e80.tar.gz pyecsca-70cc34a335ffe8b839c0c930b1e5c199cd975e80.tar.zst pyecsca-70cc34a335ffe8b839c0c930b1e5c199cd975e80.zip | |
Improve point test coverage.
Diffstat (limited to 'pyecsca')
| -rw-r--r-- | pyecsca/ec/point.py | 4 |
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 |
