Indicate which versions of Class::MOP and Moose you have
[gitmo/moose-presentations.git] / moose-class / exercises / t / 05-types.t
CommitLineData
ad648c43 1# Your tasks ...
2#
3# In this set of exercises, you will return to your Person and
4# Employee classes, and add appropriate types for every one of their
5# attributes.
6#
7# In Person, the title, first_name, and last_name attributes should
8# all be strings.
9#
10# In Employee, you will create several custom subtypes.
11#
12# The salary_level attribute should be an integer subtype that only
13# allows for values from 1-10.
14#
15# The salary attribute should be a positive integer.
16#
17# Finally, the ssn attribute should be a string subtype that validates
18# against a regular expression of /^\d\d\d-\d\d-\d\d\d\d$/
19
20use strict;
21use warnings;
22
23use lib 't/lib';
24
25use MooseClass::Tests;
26
27use Person;
28use Employee;
29
30MooseClass::Tests::tests05();