X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F000-load.t;h=9d7678a21c9d2b9598e8557ec28569bdbbc3393f;hb=refs%2Fheads%2Fmaster;hp=e7d33431254cb88cbb2c92c595cc56bc408642d5;hpb=081ecb940104550b9d18c4dcc84cd7267826a236;p=gitmo%2FMouse.git diff --git a/t/000-load.t b/t/000-load.t index e7d3343..9d7678a 100644 --- a/t/000-load.t +++ b/t/000-load.t @@ -1,25 +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'} ); + +diag "Testing Mouse/$Mouse::VERSION (", $xs ? 'XS' : 'Pure Perl', ")"; + +diag "Soft dependency versions:"; eval { require Moose }; -no warnings 'uninitialized'; diag " Class::MOP: $Class::MOP::VERSION"; diag " Moose: $Moose::VERSION"; +