complete re-organization of the test suite
[gitmo/Moose.git] / t / 040_type_constraints / 010_misc_type_tests.t
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use Test::More tests => 3;
7 use Test::Exception;
8
9 BEGIN {
10     use_ok('Moose::Util::TypeConstraints');           
11 }
12
13 # subtype 'aliasing' ...
14
15 lives_ok {
16     subtype 'Numb3rs' => as 'Num';
17 } '... create bare subtype fine';
18
19 my $numb3rs = find_type_constraint('Numb3rs');
20 isa_ok($numb3rs, 'Moose::Meta::TypeConstraint');