Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweaked expected module output to account for the change in default f…

…ormat in Test::Builder 1.005000_005.
  • Loading branch information...
commit ce1e898183f05f58e57617d28683f18e10b7bed4 1 parent cdf04d9
Guillaume Aubert authored
4 t/20-ok_versions-sync.t
View
@@ -23,11 +23,13 @@ ok(
'Add the test lib/ directory to @INC.',
);
+test_out( '1..5')
+ if $Test::More::VERSION >= 1.005000005;
test_out( 'ok 1 - No MANIFEST.SKIP found, skipping.' );
test_out( 'ok 2 - The MANIFEST file is present at the root of the distribution.' );
test_out( 'ok 3 - Retrieve MANIFEST file.' );
test_out( ' TAP version 13' )
- if $Test::More::VERSION >= 1.005;
+ if $Test::More::VERSION >= 1.005 && $Test::More::VERSION < 1.005000005;
test_out( ' 1..4' );
test_out( ' ok 1 - use TestModule1;' );
test_out( ' ok 2 - Module TestModule1 declares a version.' );
5 t/21-ok_versions-desync.t
View
@@ -23,12 +23,13 @@ ok(
'Add the test lib/ directory to @INC.',
);
-
+test_out( '1..5')
+ if $Test::More::VERSION >= 1.005000005;
test_out( 'ok 1 - No MANIFEST.SKIP found, skipping.' );
test_out( 'ok 2 - The MANIFEST file is present at the root of the distribution.' );
test_out( 'ok 3 - Retrieve MANIFEST file.' );
test_out( ' TAP version 13' )
- if $Test::More::VERSION >= 1.005;
+ if $Test::More::VERSION >= 1.005 && $Test::More::VERSION < 1.005000005;
test_out( ' 1..4' );
test_out( ' ok 1 - use TestModule1;' );
test_out( ' ok 2 - Module TestModule1 declares a version.' );
4 t/22-ok_versions-modules_list.t
View
@@ -23,9 +23,11 @@ ok(
'Add the test lib/ directory to @INC.',
);
+test_out( '1..3')
+ if $Test::More::VERSION >= 1.005000005;
test_out( 'ok 1 - modules list isa ARRAY' );
test_out( ' TAP version 13' )
- if $Test::More::VERSION >= 1.005;
+ if $Test::More::VERSION >= 1.005 && $Test::More::VERSION < 1.005000005;
test_out( ' 1..4' );
test_out( ' ok 1 - use TestModule1;' );
test_out( ' ok 2 - Module TestModule1 declares a version.' );
3  t/23-ok_versions-empty_list.t
View
@@ -7,6 +7,9 @@ use Test::More tests => 1;
use Test::Dist::VersionSync;
use Test::Builder::Tester;
+
+test_out( '1..3')
+ if $Test::More::VERSION >= 1.005000005;
test_out( 'ok 1 - modules list isa ARRAY' );
test_out( 'ok 2 # skip No module found in the distribution.' );
test_out( 'ok 3 # skip No module found in the distribution.' );
2  t/24-ok_versions-missing_manifest.t
View
@@ -23,6 +23,8 @@ ok(
'Add the test lib/ directory to @INC.',
);
+test_out( '1..5')
+ if $Test::More::VERSION >= 1.005000005;
test_out( 'ok 1 - No MANIFEST.SKIP found, skipping.' );
test_out( 'not ok 2 - The MANIFEST file is present at the root of the distribution.' );
test_out( 'ok 3 # skip MANIFEST is missing, cannot retrieve list of files.' );
4 t/25-ok_versions-missing_version.t
View
@@ -23,11 +23,13 @@ ok(
'Add the test lib/ directory to @INC.',
);
+test_out( '1..5')
+ if $Test::More::VERSION >= 1.005000005;
test_out( 'ok 1 - No MANIFEST.SKIP found, skipping.' );
test_out( 'ok 2 - The MANIFEST file is present at the root of the distribution.' );
test_out( 'ok 3 - Retrieve MANIFEST file.' );
test_out( ' TAP version 13' )
- if $Test::More::VERSION >= 1.005;
+ if $Test::More::VERSION >= 1.005 && $Test::More::VERSION < 1.005000005;
test_out( ' 1..4' );
test_out( ' ok 1 - use TestModule1;' );
test_out( ' ok 2 - Module TestModule1 declares a version.' );
Please sign in to comment.
Something went wrong with that request. Please try again.