adventofcode/2024/10/test.t

23 lines
467 B
Perl
Raw Normal View History

2024-12-10 23:34:16 +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(file=>'sample')->solve() => 36 );
is( Part1->new(file=>'input')->solve() => $solutions->{part1} );
};
subtest 'part 2' => sub {
is( Part2->new(file=>'sample')->solve() => 81 );
is( Part2->new(file=>'input')->solve() => $solutions->{part2});
};
done_testing();