adventofcode/2020/13/tests.t

19 lines
358 B
Perl
Raw Normal View History

2021-12-05 16:51:21 +00:00
use Test2::V0;
use Path::Tiny;
require './part1.pm';
require './part2.pm';
my @input = path('input')->lines;
subtest part1 => sub {
is part1::solution( $input[0], split ',', $input[1] ) => 171;
};
subtest part2 => sub {
is part2::solution( 17, 'x', 13, 19 ) => 3417;
# is part2::solution( split ',', $input[1] ) => 171;
};
done_testing();