| parrotcode: P6object tests | |
| Contents | Tests |

t/library/p6object.t -- P6object tests

% prove t/library/p6object.t

Testing Perl 6 objects.

.new method of proto, does some tests on the instance, and returns it. The available options include: shortname the name expected from stringifying the protoobject
typename the name expected from C<typeof>
isa a list of classes to test for "isa" semantics
value is already an array of some sort, return it, otherwise split value on spaces and return that.hash[key] if it exists, otherwise return default.object is/isn't an instance of class as reported by the isa opcode. objectname is used to generate the diagnostic message in output (i.e., it's not the actual diagnostic message).
|
|
|