diff options
author | Colin Kuskie <colink@perldreamer.com> | 2012-07-17 22:07:54 -0700 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2012-08-29 21:59:56 +0200 |
commit | 09afc3e433a69b64f92f16c1fbb2f687d579be81 (patch) | |
tree | 417cd9f38a27fb544b4372c4a5bbd4e366273c6d /t | |
parent | 51e1fe85f60b4794a6d7a9bd935381c9af035e49 (diff) | |
download | perl-09afc3e433a69b64f92f16c1fbb2f687d579be81.tar.gz |
Refactor t/re/no_utf8_pt.t to use test.pl instead of making TAP by hand.
Diffstat (limited to 't')
-rw-r--r-- | t/re/no_utf8_pm.t | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/t/re/no_utf8_pm.t b/t/re/no_utf8_pm.t index 8e9dbb9171..6595a248b3 100644 --- a/t/re/no_utf8_pm.t +++ b/t/re/no_utf8_pm.t @@ -1,6 +1,12 @@ #!./perl -print "1..1\n"; +BEGIN { + chdir 't' if -d 't'; + @INC = '../lib'; + require './test.pl'; +} + +plan tests => 1; # Make sure that case-insensitive matching of any Latin1 chars don't load # utf8.pm. We assume that NULL won't force loading utf8.pm, and since it @@ -8,5 +14,4 @@ print "1..1\n"; # a swash if it thought there was one. "\0" =~ /[\001-\xFF]/i; -print "not " if exists $INC{"utf8.pm"}; -print "ok 1\n"; +ok(! exists $INC{"utf8.pm"}, 'case insensitive matching of any Latin1 chars does not load utf8.pm'); |