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=a075550251f13e29727c04eefee15d96a05cef67;hpb=c3398f5bd45f2851b7cd40ca9823bcf7d2378469;p=gitmo%2FMouse.git diff --git a/t/000-load.t b/t/000-load.t index a075550..9d7678a 100644 --- a/t/000-load.t +++ b/t/000-load.t @@ -1,7 +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'; + +no warnings 'uninitialized'; + +my $xs = !exists( $INC{'Mouse/PuprePerl.pm'} ); + +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";