[Koha-patches] [PATCH] Fixing C4::Boolean tests, in August 2009 we changed the die to a warn, tests didn't reflect this. Now we should have 100% of C4::Boolean
Chris Cormack
chrisc at catalyst.net.nz
Sat Sep 4 10:51:50 CEST 2010
---
t/Boolean.t | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/Boolean.t b/t/Boolean.t
index 4810833..4e67ee8 100755
--- a/t/Boolean.t
+++ b/t/Boolean.t
@@ -55,10 +55,10 @@ BEGIN {
'"YES"', \&f, 'OK:1', 'YES' # verify case insensitivity
# Illegal strings
-# ], [
-# 'undef', \&f, C4::Boolean::INVALID_BOOLEAN_STRING_EXCEPTION, undef
-# ], [
-# '"foo"', \&f, C4::Boolean::INVALID_BOOLEAN_STRING_EXCEPTION, 'foo'
+ ], [
+ 'undef', \&f, 'OK:', undef
+ ], [
+ '"foo"', \&f, 'OK:', 'foo'
],
);
}
--
1.7.0.4
More information about the Koha-patches
mailing list