Skip to content

Commit

Permalink
test_numbertheory: 0 for inverse_mod
Browse files Browse the repository at this point in the history
ensure that the inverse_mod with 0 works correctly
  • Loading branch information
tomato42 committed Oct 31, 2019
1 parent 5c81135 commit f237037
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ecdsa/test_numbertheory.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,6 @@ def test_inverse_mod(self, nums):

assert 0 < inv < mod
assert num * inv % mod == 1

def test_inverse_mod_with_zero(self):
assert 0 == inverse_mod(0, 11)

0 comments on commit f237037

Please sign in to comment.