adventofcode/2024/11/test.t

22 lines
418 B
Perl
Raw Permalink Normal View History

2024-12-11 18:40:40 +00:00
use lib qw~ . ~;
use Part1;
use Part2;
use Test2::V0;
use Path::Tiny;
use File::Serialize;
my $solutions = deserialize_file './solutions.yml';
subtest 'part 1' => sub {
is( Part1->new(input=>[125,17])->solve() => 55312 );
is( Part1->new(file=>'input')->solve() => $solutions->{part1} );
};
subtest 'part 2' => sub {
is( Part2->new(file=>'input')->solve() => $solutions->{part2});
};
done_testing();