We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566fff1 commit e755397Copy full SHA for e755397
tests/zxcvbn_test.py
@@ -46,3 +46,13 @@ def test_empty_password():
46
zxcvbn(password, user_inputs=[input_])
47
except IndexError as ie:
48
assert False, "Empty password raised IndexError"
49
+
50
51
+def test_user_inputs_side_effects():
52
+ password = '7r3iz3|)0uz3'
53
+ input_ = [password]
54
55
+ guess1 = zxcvbn(password)['guesses_log10']
56
+ zxcvbn('somepassword', user_inputs=input_)
57
+ guess2 = zxcvbn(password)['guesses_log10']
58
+ assert abs(guess1 - guess2) < 1
0 commit comments