This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
diagnostics.t: Restore test name removed by f0e510f
[perl5.git] / lib / strict.t
CommitLineData
619d9e9c 1#!./perl
8ebc5c01 2
a80e93c2
NC
3chdir 't' if -d 't';
4@INC = '../lib';
8ebc5c01 5
619d9e9c
NC
6our $local_tests = 4;
7require "../t/lib/common.pl";
210bfd0c
EM
8
9eval qq(use strict 'garbage');
619d9e9c 10like($@, qr/^Unknown 'strict' tag\(s\) 'garbage'/);
210bfd0c
EM
11
12eval qq(no strict 'garbage');
619d9e9c 13like($@, qr/^Unknown 'strict' tag\(s\) 'garbage'/);
210bfd0c
EM
14
15eval qq(use strict qw(foo bar));
619d9e9c 16like($@, qr/^Unknown 'strict' tag\(s\) 'foo bar'/);
210bfd0c
EM
17
18eval qq(no strict qw(foo bar));
619d9e9c 19like($@, qr/^Unknown 'strict' tag\(s\) 'foo bar'/);