X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=t%2FBoolean.t;h=0f04913cae515c2220c793cb15b82d32b2a62f94;hb=26e9c67755b3cdda82daeb70b693b215f5949268;hp=fb3b0bfdc55d25aa9f7b712dc059e0ae2460fe22;hpb=a8222aeeb1169d7b1939d1e64c319a16e3846e8c;p=koha_gimpoz diff --git a/t/Boolean.t b/t/Boolean.t index fb3b0bfdc5..0f04913cae 100755 --- a/t/Boolean.t +++ b/t/Boolean.t @@ -2,7 +2,7 @@ use strict; use warnings; -use Test::More tests => 12; +use Test::More tests => 13; BEGIN { use_ok( 'C4::Boolean', qw( true_p ) ); } @@ -19,3 +19,4 @@ is( true_p('YES'), '1', 'verified case insensitivity' ); is( true_p(undef), undef, 'recognizes undefined as not boolean' ); is( true_p('foo'), undef, 'recognizes \'foo\' as not boolean' ); +is( true_p([]), undef, 'recognizes a reference as not a boolean' );