keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.07k stars 1.42k forks source link

Fix passphrase generator test #10890

Closed c4rlo closed 3 weeks ago

c4rlo commented 3 weeks ago

Previously, the test case was assuming the wrong regex. In particular, the default word list (eff_large.wordlist) contains several words that contain dashes (example). Adjust the regex used in the test to reflect this. This should fix rare test failures (example).

Additionally, if this test case ever fails again, the error message will include the generated passphrase, to make debugging easier.

Type of change