Simplistic implementation of type intersections, modeled after the implementation...
[gitmo/Moose.git] / t / type_constraints / throw_error.t
index 662d327..ba34cc9 100644 (file)
@@ -11,4 +11,9 @@ eval { Moose::Util::TypeConstraints::create_type_constraint_union() };
 like( $@, qr/\QYou must pass in at least 2 type names to make a union/,
       'can throw a proper error without Moose being loaded by the caller' );
 
+eval { Moose::Util::TypeConstraints::create_type_constraint_intersection() };
+
+like( $@, qr/\QYou must pass in at least 2 type names to make an intersection/,
+      'can throw a proper error without Moose being loaded by the caller' );
+
 done_testing;