Tweaks and documenting Mouse::Exporter
[gitmo/Mouse.git] / t / 024-isa.t
index ae8a594..ee970db 100644 (file)
@@ -2,8 +2,8 @@
 use strict;
 use warnings;
 use Test::More;
-use Test::Exception;
 use IO::Handle;
+use Test::Exception;
 
 my @types = qw/Any Item Bool Undef Defined Value Num Int Str ClassName
                Ref ScalarRef ArrayRef HashRef CodeRef RegexpRef GlobRef
@@ -84,7 +84,7 @@ for my $type (@types) {
     }
 
     for my $value (@{ $values_for_type{$type}{invalid} }) {
-        my $display = defined($value) ? $value : 'undef';
+        my $display = defined($value) ? overload::StrVal($value) : 'undef';
         my $via_new;
         throws_ok {
             $via_new = Class->new($type => $value);