Revert autogenerated tests. Tests should not changed radically.
[gitmo/Mouse.git] / t / 040_type_constraints / failing / 011_container_type_constraint.t
@@ -1,28 +1,24 @@
 #!/usr/bin/perl
-# This is automatically generated by author/import-moose-test.pl.
-# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
-use t::lib::MooseCompat;
 
 use strict;
 use warnings;
 
-use Test::More;
-$TODO = q{Mouse is not yet completed};
+use Test::More tests => 24;
 use Test::Exception;
 
 BEGIN {
     use_ok('Mouse::Util::TypeConstraints');
-    use_ok('Mouse::Meta::TypeConstraint');
+    use_ok('Mouse::Meta::TypeConstraint::Parameterized');
 }
 
 # Array of Ints
 
-my $array_of_ints = Mouse::Meta::TypeConstraint->new(
+my $array_of_ints = Mouse::Meta::TypeConstraint::Parameterized->new(
     name           => 'ArrayRef[Int]',
     parent         => find_type_constraint('ArrayRef'),
     type_parameter => find_type_constraint('Int'),
 );
-isa_ok($array_of_ints, 'Mouse::Meta::TypeConstraint');
+isa_ok($array_of_ints, 'Mouse::Meta::TypeConstraint::Parameterized');
 isa_ok($array_of_ints, 'Mouse::Meta::TypeConstraint');
 
 ok($array_of_ints->check([ 1, 2, 3, 4 ]), '... [ 1, 2, 3, 4 ] passed successfully');
@@ -35,12 +31,12 @@ ok(!$array_of_ints->check(sub { () }), '... sub { () } failed successfully');
 
 # Hash of Ints
 
-my $hash_of_ints = Mouse::Meta::TypeConstraint->new(
+my $hash_of_ints = Mouse::Meta::TypeConstraint::Parameterized->new(
     name           => 'HashRef[Int]',
     parent         => find_type_constraint('HashRef'),
     type_parameter => find_type_constraint('Int'),
 );
-isa_ok($hash_of_ints, 'Mouse::Meta::TypeConstraint');
+isa_ok($hash_of_ints, 'Mouse::Meta::TypeConstraint::Parameterized');
 isa_ok($hash_of_ints, 'Mouse::Meta::TypeConstraint');
 
 ok($hash_of_ints->check({ one => 1, two => 2, three => 3 }), '... { one => 1, two => 2, three => 3 } passed successfully');
@@ -53,12 +49,12 @@ ok(!$hash_of_ints->check(sub { () }), '... sub { () } failed successfully');
 
 # Array of Array of Ints
 
-my $array_of_array_of_ints = Mouse::Meta::TypeConstraint->new(
+my $array_of_array_of_ints = Mouse::Meta::TypeConstraint::Parameterized->new(
     name           => 'ArrayRef[ArrayRef[Int]]',
     parent         => find_type_constraint('ArrayRef'),
     type_parameter => $array_of_ints,
 );
-isa_ok($array_of_array_of_ints, 'Mouse::Meta::TypeConstraint');
+isa_ok($array_of_array_of_ints, 'Mouse::Meta::TypeConstraint::Parameterized');
 isa_ok($array_of_array_of_ints, 'Mouse::Meta::TypeConstraint');
 
 ok($array_of_array_of_ints->check(
@@ -70,10 +66,8 @@ ok(!$array_of_array_of_ints->check(
 
 {
     my $anon_type = Mouse::Util::TypeConstraints::find_or_parse_type_constraint('ArrayRef[Foo]');
-    isa_ok( $anon_type, 'Mouse::Meta::TypeConstraint' );
+    isa_ok( $anon_type, 'Mouse::Meta::TypeConstraint::Parameterized' );
 
     my $param_type = $anon_type->type_parameter;
-    isa_ok( $param_type, 'Mouse::Meta::TypeConstraint' );
+    isa_ok( $param_type, 'Mouse::Meta::TypeConstraint::Class' );
 }
-
-done_testing;