From 997b8a5d811304ed33465697c235c5f14b895a2a Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Fri, 18 Nov 2016 15:28:00 +0100 Subject: [PATCH] rename file that is not a test --- tests/v2/debug.py | 10 ++++++++++ tests/v2/renderPassword.tests.py | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 tests/v2/debug.py delete mode 100644 tests/v2/renderPassword.tests.py diff --git a/tests/v2/debug.py b/tests/v2/debug.py new file mode 100644 index 0000000..a8f7708 --- /dev/null +++ b/tests/v2/debug.py @@ -0,0 +1,10 @@ +def renderPassword(mdp, quotient, alphabet): + if len(mdp) > 14: + return mdp + quotient, remainder = divmod(quotient, len(alphabet)) + mdp += alphabet[remainder] + return renderPassword(mdp, quotient, alphabet) + + +alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' +print(renderPassword('', int('dc33d431bce2b01182c613382483ccdb0e2f66482cbba5e9d07dab34acc7eb1e', 16), alphabet)) diff --git a/tests/v2/renderPassword.tests.py b/tests/v2/renderPassword.tests.py deleted file mode 100644 index a8f7708..0000000 --- a/tests/v2/renderPassword.tests.py +++ /dev/null @@ -1,10 +0,0 @@ -def renderPassword(mdp, quotient, alphabet): - if len(mdp) > 14: - return mdp - quotient, remainder = divmod(quotient, len(alphabet)) - mdp += alphabet[remainder] - return renderPassword(mdp, quotient, alphabet) - - -alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' -print(renderPassword('', int('dc33d431bce2b01182c613382483ccdb0e2f66482cbba5e9d07dab34acc7eb1e', 16), alphabet))