From: Nicholas Clark Date: Fri, 18 Jun 2004 11:27:51 +0000 (+0000) Subject: D'oh. Don't turn on warnings on the #! line without actually testing X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d3cf3ee0325fce8b6dc25a062192e5963aa7940;p=p5sagit%2Fp5-mst-13.2.git D'oh. Don't turn on warnings on the #! line without actually testing the full code in case it warns. p4raw-id: //depot/perl@22950 --- diff --git a/lib/Unicode/UCD.t b/lib/Unicode/UCD.t index a36902c..c4046bc 100644 --- a/lib/Unicode/UCD.t +++ b/lib/Unicode/UCD.t @@ -275,12 +275,12 @@ ok($casespec->{code} eq '00DF' && $casespec->{lower} eq '00DF' && $casespec->{title} eq '0053 0073' && $casespec->{upper} eq '0053 0053' && - $casespec->{condition} eq undef, 'casespec 0xDF'); + !defined $casespec->{condition}, 'casespec 0xDF'); $casespec = casespec(0x307); ok($casespec->{az}->{code} eq '0307' && - $casespec->{az}->{lower} eq '' && + !defined $casespec->{az}->{lower} && $casespec->{az}->{title} eq '0307' && $casespec->{az}->{upper} eq '0307' && $casespec->{az}->{condition} eq 'az After_I', @@ -288,7 +288,7 @@ ok($casespec->{az}->{code} eq '0307' && # perl #7305 UnicodeCD::compexcl is weird -for (1) {$a=compexcl $_} +for (1) {my $a=compexcl $_} ok(1, 'compexcl read-only $_: perl #7305'); grep {compexcl $_} %{{1=>2}}; ok(1, 'compexcl read-only hash: perl #7305'); @@ -317,4 +317,4 @@ is(Unicode::UCD::_getcode('U+123x'), undef, "_getcode(x123)"); { is(charinfo(0xdeadbeef), undef, "[perl #23273] warnings in Unicode::UCD"); -} \ No newline at end of file +}