Permalink
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 423 Bytes
use strict;
use warnings;
use Test::More;
use FindBin qw/$Bin/;
use lib "$Bin/lib";
use TryCatch;
try {
require NoType;
pass("Types dont need to be pre-declared");
}
catch ($e) {
fail("Types dont need to be pre-declared");
diag($e);
}
try {
require NoVarName;
pass("Types can be declared without a var name");
}
catch ($e) {
fail("Types can be declared without a var name");
diag($e);
}
done_testing;