Remove cruft
[gitmo/Moose.git] / t / 040_type_constraints / 010_misc_type_tests.t
index 04bc642..7b86046 100644 (file)
@@ -5,6 +5,7 @@ use warnings;
 
 use Test::More;
 use Test::Exception;
+use Scalar::Util qw(refaddr);
 
 BEGIN {
     use_ok('Moose::Util::TypeConstraints');
@@ -78,7 +79,11 @@ ok $subtype2 => 'made a subtype of our subtype';
     my $foo = Moose::Util::TypeConstraints::find_type_constraint('Foo');
     my $bar = Moose::Util::TypeConstraints::find_type_constraint('Bar');
 
-    ok(! $foo->equals($bar), "Foo type is not equal to Bar type");
+    ok(!$foo->equals($bar), "Foo type is not equal to Bar type");
+    ok( $foo->equals($foo), "Foo equals Foo");
+    ok( 0+$foo == refaddr($foo), "overloading works");
 }
 
+ok $subtype1, "type constraint boolean overload works";
+
 done_testing;