Added missing reference case to Boolean.t and corrected count
authorChris Hall <chrish@catalyst.net.nz>
Wed, 7 Dec 2011 20:34:36 +0000 (09:34 +1300)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 15 Dec 2011 12:41:47 +0000 (13:41 +0100)
http://bugs.koha-community.org/show_bug.cgi?id=5327
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Test passes.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
t/Boolean.t

index 865953c..0f04913 100755 (executable)
@@ -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' );