X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F000-load.t;h=9d7678a21c9d2b9598e8557ec28569bdbbc3393f;hb=274f71681ecca5229088aafc1ebd04c9f0296ab4;hp=66fe9bd77b91beee9c967e36595e5e08c9728296;hpb=46fce5c9be3cf473b747bec5439cd8cefdb14bd2;p=gitmo%2FMouse.git diff --git a/t/000-load.t b/t/000-load.t index 66fe9bd..9d7678a 100644 --- a/t/000-load.t +++ b/t/000-load.t @@ -1,30 +1,21 @@ #!perl -T +package Foo; use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 2; -use_ok 'Mouse'; +require_ok 'Mouse'; +require_ok 'Mouse::Role'; -diag "Soft dependency versions:"; -for my $module_name (keys %Mouse::Util::loaded) { - my $version; - if ($Mouse::Util::loaded{$module_name}) { - no strict 'refs'; - $version = ${$module_name . '::VERSION'}; - } - else { - $version = "(provided by Mouse::Util)"; - } +no warnings 'uninitialized'; - diag " $module_name: $version"; -} +my $xs = !exists( $INC{'Mouse/PuprePerl.pm'} ); -no warnings 'uninitialized'; +diag "Testing Mouse/$Mouse::VERSION (", $xs ? 'XS' : 'Pure Perl', ")"; + +diag "Soft dependency versions:"; eval { require Moose }; diag " Class::MOP: $Class::MOP::VERSION"; diag " Moose: $Moose::VERSION"; -eval { require Class::Method::Modifiers }; -diag " Class::Method::Modifiers: $Class::Method::Modifiers::VERSION"; -