added enum test, more docs both internal and external and a few minor code clarification
[gitmo/MooseX-Types.git] / t / lib / DecoratorLibrary.pm
index 180a959..880b456 100644 (file)
@@ -10,6 +10,7 @@ use MooseX::Types
         MyHashRefOfStr
         StrOrArrayRef
         AtLeastOneInt
+        Jobs
     )];
 
 ## Some questionable messing around
@@ -68,5 +69,8 @@ subtype StrOrArrayRef,
 subtype AtLeastOneInt,
     as ArrayRef[Int],
     where { @$_ > 0 };
-
+    
+enum Jobs,
+    (qw/Programming Teaching Banking/);
+    
 1;