From 8ec8da0491ad89604700b3e29a227966f6d84ba1 Mon Sep 17 00:00:00 2001 From: Perl Tidy Date: Wed, 5 Dec 2018 15:38:52 -0500 Subject: no bug - reformat all the code using the new perltidy rules --- t/903-passwdqc-conf.t | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 't/903-passwdqc-conf.t') diff --git a/t/903-passwdqc-conf.t b/t/903-passwdqc-conf.t index fe7ce9b53..718947377 100644 --- a/t/903-passwdqc-conf.t +++ b/t/903-passwdqc-conf.t @@ -12,12 +12,28 @@ use autodie; use Test::More 1.302; use ok 'Bugzilla::Config::Auth'; -ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("undef, 24, 11, 8, 7")) == 0, "default value is valid"); -ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("underf, 24, 11, 8, 7")) != 0, "underf is not valid"); -is(Bugzilla::Config::Auth::_check_passwdqc_min("undef, 24, 25, 8, 7"), "Int2 is larger than Int1 (24)", "25 can't come after 24"); -ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("")) != 0, "empty string is invalid"); -ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("24")) != 0, "24 is invalid"); -ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("-24")) != 0, "-24 is invalid"); -ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("10, 10, 10, 10, 0")) != 0, "10, 10, 10, 10, 0 is invalid"); +ok( + length(Bugzilla::Config::Auth::_check_passwdqc_min("undef, 24, 11, 8, 7")) == 0, + "default value is valid" +); +ok( + length(Bugzilla::Config::Auth::_check_passwdqc_min("underf, 24, 11, 8, 7")) + != 0, + "underf is not valid" +); +is( + Bugzilla::Config::Auth::_check_passwdqc_min("undef, 24, 25, 8, 7"), + "Int2 is larger than Int1 (24)", + "25 can't come after 24" +); +ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("")) != 0, + "empty string is invalid"); +ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("24")) != 0, + "24 is invalid"); +ok(length(Bugzilla::Config::Auth::_check_passwdqc_min("-24")) != 0, + "-24 is invalid"); +ok( + length(Bugzilla::Config::Auth::_check_passwdqc_min("10, 10, 10, 10, 0")) != 0, + "10, 10, 10, 10, 0 is invalid"); done_testing; -- cgit v1.2.3-24-g4f1b