summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-12-21 16:38:24 +0000
committerNicholas Clark <nick@ccl4.org>2010-12-21 16:38:24 +0000
commite4dc48dc285e86e786d9f1ca22417ef481b6daff (patch)
tree1399ca5c905ffe11271cd6e52b62aaa178f96d8e
parent542a7c8b7d726a41250d94667c3dd4e45b0cbcca (diff)
downloadperl-e4dc48dc285e86e786d9f1ca22417ef481b6daff.tar.gz
Convert lib/utf8.t to strict and warnings throughout.
-rw-r--r--lib/utf8.t10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/utf8.t b/lib/utf8.t
index f98052c29b..722c51de37 100644
--- a/lib/utf8.t
+++ b/lib/utf8.t
@@ -13,6 +13,8 @@ EOF
}
}
+use strict;
+use warnings;
no utf8; # Ironic, no?
# NOTE!
@@ -111,9 +113,6 @@ plan tests => 157;
}
{
- use warnings;
- use strict;
-
my $show = q(
sub show {
my $result;
@@ -459,7 +458,10 @@ SKIP: {
ok( !utf8::is_utf8( 'asd' ), "Wasteful format - q{}" );
ok( !utf8::is_utf8( qw(asd) ), "Wasteful format - qw{}" );
ok( !utf8::is_utf8( (asd => 1)[0] ), "Wasteful format - =>" );
- ok( !utf8::is_utf8( asd ), "Wasteful format - bareword" );
ok( !utf8::is_utf8( -asd ), "Wasteful format - -word" );
+ no warnings 'bareword';
ok( !utf8::is_utf8( asd:: ), "Wasteful format - word::" );
+ no warnings 'reserved';
+ no strict 'subs';
+ ok( !utf8::is_utf8( asd ), "Wasteful format - bareword" );
}