X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=t%2F001_mouse%2F043-parameterized-type.t;h=3e223e227c73692412d5df48dd8fee7303756656;hp=74b3ea956d928e8c470b3a5f62780a35efc96ac3;hb=fc83f4cf2ef7708120a216bddc285b93082d7958;hpb=3bf1e61fcb47e0815e305e0199f5743adde98f87 diff --git a/t/001_mouse/043-parameterized-type.t b/t/001_mouse/043-parameterized-type.t index 74b3ea9..3e223e2 100644 --- a/t/001_mouse/043-parameterized-type.t +++ b/t/001_mouse/043-parameterized-type.t @@ -1,7 +1,7 @@ #!/usr/bin/env perl use strict; use warnings; -use Test::More tests => 51; +use Test::More tests => 54; use Test::Exception; use Tie::Hash; @@ -210,4 +210,15 @@ while(my($k, $v) = each %th){ $th_clone{$k} = $v; } +is( $hash_of_int->type_parameter, 'Int' ); + +if('Mouse' eq ('Mo' . 'use')){ # under Mouse + ok $hash_of_int->__is_parameterized(); + ok!$hash_of_int->type_parameter->__is_parameterized(); +} +else{ # under Moose + ok $hash_of_int->can('type_parameter'); + ok!$hash_of_int->type_parameter->can('type_parameter'); +} + is_deeply \%th_clone, \%th, 'the hash iterator is initialized';