The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!/usr/bin/env perl

use strict;
use lib 't/lib';

use Cat;
use Test::More;

plan tests => 5;

my $pet = Cat->new;
$pet->name("oreo");

like $pet->sound, qr/meow/;
is $pet->name, "oreo";
is $pet->class, 'Cat', "->class";
is $pet->superclass, 'Animal', "->superclass";

like $pet->play('ball'), qr/ball is funny/, "play() defined with proto.";