2 # Copyright (C) 2007-2008, Parrot Foundation.
7 t/pmc/role.t - test the Role PMC
19 # L<PDD15/Role PMC API>
22 .include 'test_more.pir'
28 ok(1, 'Role type exists') # or we've already died.
32 is($I0, 1, 'isa Role')
37 $P1 = new ['Role'], $P0
38 ok(1, 'Created a Role initialized with a Hash')
40 $P2 = $P1.'inspect'('name')
43 ok($I0, 'Role name was set correctly')
46 $P2 = $P1.'inspect'('namespace')
49 ok($I0, 'Role namespace was set correctly')
52 ## TODO add more tests as this is documented and implemented
58 # vim: expandtab shiftwidth=4 ft=pir: