adventofcode/2020/05/tests.t

22 lines
340 B
Perl
Raw Normal View History

2021-12-05 16:51:21 +00:00
use Test2::V0;
BEGIN { push @INC, '.' }
use Path::Tiny;
use List::AllUtils qw/ max /;
use part1;
use part2;
subtest "part1" => sub {
is resolve('BFFFBBFRRR') => 567;
is max( map { resolve($_) } path('input')->lines ) => 813;
};
subtest part2 => sub {
is part2::solution( path('input')->lines ) => 612;
};
done_testing();