removed debugging code leftovers
[gitmo/MooseX-Types.git] / t / regressions / 01-is_subtype_of.t
CommitLineData
149f4b2d 1use strict;
2use warnings;
3
1f071601 4use Test::More tests=>5;
149f4b2d 5use MooseX::Types;
6use MooseX::Types::Moose qw(Any Item );
7
8
9my $item = subtype as 'Item';
10
1f071601 11ok Item->equals('Item');
12ok Item->equals(Item);
13
149f4b2d 14ok ( $item->is_subtype_of('Any'),
15 q[$item is subtype of 'Any']);
16
17ok ( Item->is_subtype_of('Any'),
18 q[Item is subtype of 'Any']);
19
149f4b2d 20ok ( Item->is_subtype_of(Any),
21 q[Item is subtype of Any]);
22