3 # Create a Printable role. This role should simply require that the
4 # consuming class implement an "as_string" method.
6 # Make the Person class from the last set of exercises consume this
7 # role. Use full_name as the output for the as_string method. The
8 # Employee subclass should still override this output.
10 # Implement a role HasAccount. This should provide a read-write
11 # "balance" attribute. It should also implement "deposit" and
12 # "withdraw" methods. Attempting to reduce the cash balance below 0
13 # via "withdraw" should die with an error that includes the string:
15 # Balance cannot be negative
17 # Make the Person class consumes thi role as well.
19 # Make sure all roles are free of Moose droppings.
26 use MooseClass::Tests;
28 MooseClass::Tests::tests02();