use
strict;
use
warnings;
use
Test::Exception;
throws_ok {
subscript(
undef
);
}
qr/undefined/
;
throws_ok {
superscript(
undef
);
}
qr/undefined/
;
throws_ok {
subscript(2, 4);
}
qr/too many arguments/
;
throws_ok {
superscript(2, 4);
}
qr/too many arguments/
;