[libtype-tiny-perl] 15/46: patch a few more test cases to work on Moose 2.0000
Jonas Smedegaard
dr at jones.dk
Fri Sep 12 18:48:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 1.001_000
in repository libtype-tiny-perl.
commit 17513c178623ed1dca4f7bb60bc66526ddf30abf
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date: Fri Aug 29 13:09:38 2014 +0100
patch a few more test cases to work on Moose 2.0000
---
t/20-unit/Type-Coercion-FromMoose/basic.t | 4 ++--
t/20-unit/Type-Coercion-FromMoose/errors.t | 4 ++--
t/20-unit/Type-Parser/moosextypes.t | 8 ++++++--
t/20-unit/Type-Tiny/to-moose.t | 6 +++++-
t/20-unit/Type-Utils/dwim-both.t | 4 ++--
t/20-unit/Type-Utils/dwim-moose.t | 4 ++--
t/20-unit/Types-TypeTiny/basic.t | 4 ++--
t/20-unit/Types-TypeTiny/coercion.t | 4 ++--
t/99-moose-std-types-test.t | 4 ++--
9 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/t/20-unit/Type-Coercion-FromMoose/basic.t b/t/20-unit/Type-Coercion-FromMoose/basic.t
index 27ec626..548061e 100644
--- a/t/20-unit/Type-Coercion-FromMoose/basic.t
+++ b/t/20-unit/Type-Coercion-FromMoose/basic.t
@@ -8,7 +8,7 @@ Checks the types adopted from Moose still have a coercion which works.
=head1 DEPENDENCIES
-Moose 2.0600; otherwise skipped.
+Moose 2.0000; otherwise skipped.
=head1 AUTHOR
@@ -28,7 +28,7 @@ use warnings;
use lib qw( ./lib ./t/lib ../inc ./inc );
use Test::More;
-use Test::Requires { Moose => '2.0600' };
+use Test::Requires { Moose => '2.0000' };
use Test::TypeTiny;
use Moose::Util::TypeConstraints;
diff --git a/t/20-unit/Type-Coercion-FromMoose/errors.t b/t/20-unit/Type-Coercion-FromMoose/errors.t
index 7474a30..77d23f2 100644
--- a/t/20-unit/Type-Coercion-FromMoose/errors.t
+++ b/t/20-unit/Type-Coercion-FromMoose/errors.t
@@ -8,7 +8,7 @@ Checks crazy Type::Coercion::FromMoose errors.
=head1 DEPENDENCIES
-Moose 2.0600; otherwise skipped.
+Moose 2.0000; otherwise skipped.
=head1 AUTHOR
@@ -28,7 +28,7 @@ use warnings;
use lib qw( ./lib ./t/lib ../inc ./inc );
use Test::More;
-use Test::Requires { Moose => '2.0600' };
+use Test::Requires { Moose => '2.0000' };
use Test::Fatal;
use Types::Standard -types;
diff --git a/t/20-unit/Type-Parser/moosextypes.t b/t/20-unit/Type-Parser/moosextypes.t
index 5a87e82..435964a 100644
--- a/t/20-unit/Type-Parser/moosextypes.t
+++ b/t/20-unit/Type-Parser/moosextypes.t
@@ -6,6 +6,10 @@
Checks Type::Parser can pick up MooseX::Types type constraints.
+=head1 DEPENDENCIES
+
+Requires MooseX::Types::Common 0.001004; skipped otherwise.
+
=head1 AUTHOR
Toby Inkster E<lt>tobyink at cpan.orgE<gt>.
@@ -24,7 +28,7 @@ use warnings;
use lib qw( ./lib ./t/lib ../inc ./inc );
use Test::More;
-use Test::Requires { 'MooseX::Types::Common' => 0 };
+use Test::Requires { 'MooseX::Types::Common' => '0.001004' };
use Test::TypeTiny;
use Test::Fatal;
@@ -38,4 +42,4 @@ should_pass([1,2,3], $type);
should_pass([], $type);
should_fail([1,-2,3], $type);
-done_testing;
\ No newline at end of file
+done_testing;
diff --git a/t/20-unit/Type-Tiny/to-moose.t b/t/20-unit/Type-Tiny/to-moose.t
index d8cdfcd..a77c58d 100644
--- a/t/20-unit/Type-Tiny/to-moose.t
+++ b/t/20-unit/Type-Tiny/to-moose.t
@@ -6,6 +6,10 @@
Checks Type::Tiny objects can be converted to Moose type constraint objects.
+=head1 DEPENDENCIES
+
+Requires Moose 2.0000; skipped otherwise.
+
=head1 AUTHOR
Toby Inkster E<lt>tobyink at cpan.orgE<gt>.
@@ -24,7 +28,7 @@ use warnings;
use lib qw( ./lib ./t/lib ../inc ./inc );
use Test::More;
-use Test::Requires { 'Moose' => '2.0600' };
+use Test::Requires { 'Moose' => '2.0000' };
use Test::TypeTiny;
use Type::Tiny;
diff --git a/t/20-unit/Type-Utils/dwim-both.t b/t/20-unit/Type-Utils/dwim-both.t
index 4b9263b..8de84a5 100644
--- a/t/20-unit/Type-Utils/dwim-both.t
+++ b/t/20-unit/Type-Utils/dwim-both.t
@@ -9,7 +9,7 @@ Moose and Mouse are loaded.
=head1 DEPENDENCIES
-Mouse 1.00 and Moose 2.0600; skipped otherwise.
+Mouse 1.00 and Moose 2.0000; skipped otherwise.
=head1 AUTHOR
@@ -29,7 +29,7 @@ use warnings;
use Test::More;
{ package AAA; use Test::Requires { "Mouse" => "1.00" } };
-{ package BBB; use Test::Requires { "Moose" => "2.0600" } };
+{ package BBB; use Test::Requires { "Moose" => "2.0000" } };
{
package Minnie;
diff --git a/t/20-unit/Type-Utils/dwim-moose.t b/t/20-unit/Type-Utils/dwim-moose.t
index 43d1ce5..ac55363 100644
--- a/t/20-unit/Type-Utils/dwim-moose.t
+++ b/t/20-unit/Type-Utils/dwim-moose.t
@@ -9,7 +9,7 @@ picked up by C<dwim_type> from L<Type::Utils>.
=head1 DEPENDENCIES
-Moose 2.0600 and MooseX::Types 0.35; skipped otherwise.
+Moose 2.0000 and MooseX::Types 0.35; skipped otherwise.
=head1 AUTHOR
@@ -28,7 +28,7 @@ use strict;
use warnings;
use Test::More;
-use Test::Requires { "Moose" => "2.0600" };
+use Test::Requires { "Moose" => "2.0000" };
use Test::Requires { "MooseX::Types" => "0.35" };
use Test::TypeTiny;
diff --git a/t/20-unit/Types-TypeTiny/basic.t b/t/20-unit/Types-TypeTiny/basic.t
index 3b22ede..b6d7df1 100644
--- a/t/20-unit/Types-TypeTiny/basic.t
+++ b/t/20-unit/Types-TypeTiny/basic.t
@@ -9,7 +9,7 @@ used by Type::Tiny internally.)
=head1 DEPENDENCIES
-This test requires L<Moose> 2.0600 and L<Mouse> 1.00. Otherwise, it is
+This test requires L<Moose> 2.0000 and L<Mouse> 1.00. Otherwise, it is
skipped.
=head1 AUTHOR
@@ -31,7 +31,7 @@ use lib qw( ./lib ./t/lib ../inc ./inc );
# Test::Requires calls ->import on Moose/Mouse, so be sure
# to import them into dummy packages.
-{ package XXX; use Test::Requires { Moose => '2.0600' } };
+{ package XXX; use Test::Requires { Moose => '2.0000' } };
{ package YYY; use Test::Requires { Mouse => '1.00' } };
use Test::More;
diff --git a/t/20-unit/Types-TypeTiny/coercion.t b/t/20-unit/Types-TypeTiny/coercion.t
index 32b9a56..bfc4902 100644
--- a/t/20-unit/Types-TypeTiny/coercion.t
+++ b/t/20-unit/Types-TypeTiny/coercion.t
@@ -8,7 +8,7 @@ Test L<Types::TypeTiny::to_TypeTiny> pseudo-coercion.
=head1 DEPENDENCIES
-This test requires L<Moose> 2.0600, L<Mouse> 1.00, and L<Moo> 1.000000.
+This test requires L<Moose> 2.0000, L<Mouse> 1.00, and L<Moo> 1.000000.
Otherwise, it is skipped.
=head1 AUTHOR
@@ -30,7 +30,7 @@ use lib qw( ./lib ./t/lib ../inc ./inc );
# Test::Requires calls ->import on Moose/Mouse, so be sure
# to import them into dummy packages.
-{ package XXX; use Test::Requires { Moose => '2.0600' } };
+{ package XXX; use Test::Requires { Moose => '2.0000' } };
{ package YYY; use Test::Requires { Mouse => '1.00' } };
{ package ZZZ; use Test::Requires { Moo => '1.000000' } };
diff --git a/t/99-moose-std-types-test.t b/t/99-moose-std-types-test.t
index ffde5f6..28cc4f5 100644
--- a/t/99-moose-std-types-test.t
+++ b/t/99-moose-std-types-test.t
@@ -8,7 +8,7 @@ Type constraint tests pilfered from the L<Moose> test suite.
=head1 DEPENDENCIES
-Test is skipped if Moose 2.0600 is not available.
+Test is skipped if Moose 2.0000 is not available.
=head1 AUTHOR
@@ -48,7 +48,7 @@ BEGIN {
use strict;
use warnings;
use Test::Fatal;
-use Test::Requires { 'Moose' => '2.0600' };
+use Test::Requires { 'Moose' => '2.0000' };
use Eval::TypeTiny;
use IO::File;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtype-tiny-perl.git
More information about the Pkg-perl-cvs-commits
mailing list