adventofcode/2023/06/part2.t

18 lines
308 B
Perl
Raw Permalink Normal View History

2023-12-06 15:31:39 +00:00
use 5.38.0;
use Test2::V0;
use Path::Tiny;
2023-12-06 16:07:57 +00:00
use File::Serialize;
2023-12-06 15:31:39 +00:00
use Part2;
my $input = path('input')->slurp;
2023-12-06 16:07:57 +00:00
my $example = path('example')->slurp;
my $solutions = deserialize_file('solutions.yml');
2023-12-06 15:31:39 +00:00
2023-12-06 16:07:57 +00:00
is Part2::solution_2($example) => 71503;
is Part2::solution_2($input) => $solutions->{2};
2023-12-06 15:31:39 +00:00
done_testing;