added exercises for part 5
[gitmo/moose-presentations.git] / moose-class / exercises / t / 05-types.t
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
20 use strict;
21 use warnings;
22
23 use lib 't/lib';
24
25 use MooseClass::Tests;
26
27 use Person;
28 use Employee;
29
30 MooseClass::Tests::tests05();