summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-02-09 18:13:05 +0000
committerGreg Sabino Mullane2011-02-09 18:13:05 +0000
commite09b9cfa4d2c9fdda71892dce845e37a51e0075c (patch)
tree118df59b2271bc7792091c425f346361a752c68b
parent828b595cf19a7458371a0680087fb448335ba728 (diff)
validate_integer_for_time now returns empty string not undef
-rw-r--r--t/01_validate_range.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/01_validate_range.t b/t/01_validate_range.t
index a14fe12b0..849a0b30e 100644
--- a/t/01_validate_range.t
+++ b/t/01_validate_range.t
@@ -429,7 +429,7 @@ INTFORTIME: {
);
is_deeply [ check_postgres::validate_integer_for_time() ],
- [undef, 1200, undef, 3600],
+ ['', 1200, '', 3600],
'validate_integer_for_time() should parse time';
# Try integers, which default to time for backcompat.
@@ -438,7 +438,7 @@ INTFORTIME: {
warning => '7200'
);
is_deeply [ check_postgres::validate_integer_for_time() ],
- [ undef, 7200, undef, 1200 ],
+ [ '', 7200, '', 1200 ],
'validate_integer_for_time() should parse unsigned ints as time';
@@ -448,7 +448,7 @@ INTFORTIME: {
warning => '-45'
);
is_deeply [ check_postgres::validate_integer_for_time() ],
- [ -45, undef, 60, undef ],
+ [ -45, '', 60, '' ],
'validate_integer_for_time() should parse signed ints as ints';
# Try both.