summaryrefslogtreecommitdiff
path: root/t/op/lc.t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-28 10:46:43 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-28 10:46:43 +0000
commitc6502f5c7c927d82523e421275ac87013ce318d5 (patch)
tree2e4739555ee05cb47e2d6273d81e8f8ca47353e0 /t/op/lc.t
parent6b75f04219345928d4af5de9535cb69db219287f (diff)
downloadperl-c6502f5c7c927d82523e421275ac87013ce318d5.tar.gz
Test that lc, uc, etc on undef return ""
p4raw-id: //depot/perl@33087
Diffstat (limited to 't/op/lc.t')
-rw-r--r--t/op/lc.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/op/lc.t b/t/op/lc.t
index 1cef380417..4bfefb7b68 100644
--- a/t/op/lc.t
+++ b/t/op/lc.t
@@ -6,7 +6,12 @@ BEGIN {
require './test.pl';
}
-plan tests => 88;
+plan tests => 92;
+
+is(lc(undef), "", "lc(undef) is ''");
+is(lcfirst(undef), "", "lcfirst(undef) is ''");
+is(uc(undef), "", "uc(undef) is ''");
+is(ucfirst(undef), "", "ucfirst(undef) is ''");
$a = "HELLO.* world";
$b = "hello.* WORLD";