X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2FBoolean.t;h=0f04913cae515c2220c793cb15b82d32b2a62f94;hb=80897930b73dcd17b377ce2d175a85a720117922;hp=fb3b0bfdc55d25aa9f7b712dc059e0ae2460fe22;hpb=6aa9e9171cbc7639b171dcd6a9f316954b68d0c6;p=koha.git 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' );