diff options
Diffstat (limited to 'lib/Test/Harness/t/version.t')
-rw-r--r-- | lib/Test/Harness/t/version.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Test/Harness/t/version.t b/lib/Test/Harness/t/version.t new file mode 100644 index 0000000000..c67bcedf27 --- /dev/null +++ b/lib/Test/Harness/t/version.t @@ -0,0 +1,23 @@ +#!/usr/bin/perl -Tw + +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = ('../lib', 'lib'); + } + else { + unshift @INC, 't/lib'; + } +} + +use strict; + +use Test::More tests => 3; + +BEGIN { + use_ok('Test::Harness'); +} + +my $ver = $ENV{HARNESS_VERSION} or die "HARNESS_VERSION not set"; +like( $ver, qr/^2.\d\d(_\d\d)?$/, "Version is proper format" ); +is( $ver, $Test::Harness::VERSION ); |