adventofcode/2024/10/test.t
2024-12-10 18:34:16 -05:00

23 lines
467 B
Perl

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();