[Patches] [PATCH] [SIGNED-OFF] Added missing reference case to Boolean.t and
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Tue Dec 13 22:05:59 NZDT 2011
From: Chris Hall <chrish at catalyst.net.nz>
Date: Thu, 8 Dec 2011 09:34:36 +1300
Subject: [PATCH] [SIGNED-OFF] Added missing reference case to Boolean.t and
corrected count
http://bugs.koha-community.org/show_bug.cgi?id=5327
Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
Test passes.
---
t/Boolean.t | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/t/Boolean.t b/t/Boolean.t
index fb3b0bf..0f04913 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' );
--
1.7.5.4
More information about the Patches
mailing list