diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2016-03-29 18:15:25 +0200 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2016-03-29 18:15:25 +0200 |
commit | 46b72a462dbd7955f7e8f13cef1b1a3cb0af2c51 (patch) | |
tree | 1c581cc012509d3879bedb9cb42cca1e3e92689e /rsa/common.py | |
parent | c042a0e7fe12d5b4cbbc22d80fd4ae31f2781bea (diff) | |
download | rsa-git-46b72a462dbd7955f7e8f13cef1b1a3cb0af2c51.tar.gz |
Added unittest for rsa.common.inverse
This unittest tests both execution branches of the function, reducing
randomness of code coverage.
Diffstat (limited to 'rsa/common.py')
-rw-r--r-- | rsa/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/common.py b/rsa/common.py index e074334..b573252 100644 --- a/rsa/common.py +++ b/rsa/common.py @@ -131,7 +131,7 @@ def extended_gcd(a, b): def inverse(x, n): - """Returns x^-1 (mod n) + """Returns the inverse of x % n under multiplication, a.k.a x^-1 (mod n) >>> inverse(7, 4) 3 |