Moose compat: Remove Mouse::Class->attributes method in favor of get_attribute_map
[gitmo/Mouse.git] / t / 024-isa.t
index 476ab0c..ae8a594 100644 (file)
@@ -3,6 +3,7 @@ use strict;
 use warnings;
 use Test::More;
 use Test::Exception;
+use IO::Handle;
 
 my @types = qw/Any Item Bool Undef Defined Value Num Int Str ClassName
                Ref ScalarRef ArrayRef HashRef CodeRef RegexpRef GlobRef
@@ -10,9 +11,9 @@ my @types = qw/Any Item Bool Undef Defined Value Num Int Str ClassName
 
 my @type_values = (
     undef              ,  [qw/Any Item Undef Bool/],
-    0                  => [qw/Any Item Defined Bool Value Num Int/],
-    1                  => [qw/Any Item Defined Bool Value Num Int/],
-    1.5                => [qw/Any Item Defined Value Num/],
+    0                  => [qw/Any Item Defined Bool Value Num Int Str/],
+    1                  => [qw/Any Item Defined Bool Value Num Int Str/],
+    1.5                => [qw/Any Item Defined Value Num Str/],
     ''                 => [qw/Any Item Defined Bool Value Str/],
     't'                => [qw/Any Item Defined Value Str/],
     'f'                => [qw/Any Item Defined Value Str/],
@@ -26,7 +27,9 @@ my @type_values = (
     {}                 => [qw/Any Item Defined Ref HashRef/],
     sub { die }        => [qw/Any Item Defined Ref CodeRef/],
     qr/.*/             => [qw/Any Item Defined Ref RegexpRef/],
+    \*main::ok         => [qw/Any Item Defined Ref GlobRef/],
     \*STDOUT           => [qw/Any Item Defined Ref GlobRef FileHandle/],
+    IO::Handle->new    => [qw/Any Item Defined Ref Object FileHandle/],
     Test::Builder->new => [qw/Any Item Defined Ref Object/],
 );