diff options
Diffstat (limited to 'lib/util/tests')
-rw-r--r-- | lib/util/tests/genrand.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/tests/genrand.c b/lib/util/tests/genrand.c index 50d77bb03a..ff608cd925 100644 --- a/lib/util/tests/genrand.c +++ b/lib/util/tests/genrand.c @@ -41,7 +41,10 @@ static bool test_check_password_quality(struct torture_context *tctx) torture_assert(tctx, !check_password_quality("BLA"), "multiple upcases password"); torture_assert(tctx, !check_password_quality("123"), "digits only"); torture_assert(tctx, !check_password_quality("matthiéu"), "not enough high symbols"); - torture_assert(tctx, check_password_quality("abcdééàçè"), "valid"); + torture_assert(tctx, !check_password_quality("abcdééàçè"), "only lower case"); + torture_assert(tctx, !check_password_quality("abcdééàçè+"), "only lower and symbols"); + torture_assert(tctx, check_password_quality("abcdééàçè+ढ"), "valid"); + torture_assert(tctx, check_password_quality("ç+ढ"), "valid"); torture_assert(tctx, check_password_quality("A2e"), "valid"); torture_assert(tctx, check_password_quality("BA2eLi443"), "valid"); return true; |