Skip to content

Commit f237037

Browse files
committed
test_numbertheory: 0 for inverse_mod
ensure that the inverse_mod with 0 works correctly
1 parent 5c81135 commit f237037

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ecdsa/test_numbertheory.py

+3
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,6 @@ def test_inverse_mod(self, nums):
259259

260260
assert 0 < inv < mod
261261
assert num * inv % mod == 1
262+
263+
def test_inverse_mod_with_zero(self):
264+
assert 0 == inverse_mod(0, 11)

0 commit comments

Comments
 (0)