adventofcode/2023/07/part2.t

18 lines
284 B
Perl
Raw Permalink Normal View History

2023-12-07 15:01:29 +00:00
use 5.38.0;
use Test2::V0;
use Path::Tiny;
use Part2;
2023-12-07 16:23:53 +00:00
my $input = path('input')->slurp;
2023-12-07 16:10:22 +00:00
my $example = path('example')->slurp;
2023-12-07 15:01:29 +00:00
2023-12-07 16:10:22 +00:00
is Part2::solution_2($example) => 5905;
cmp_ok Part2::solution_2($input), '<' => 250843163;
is Part2::solution_2($input) => 250506580;
2023-12-07 15:01:29 +00:00
done_testing;