adventofcode/2023/07/part2.t

18 lines
282 B
Perl
Raw Normal View History

2023-12-07 15:01:29 +00:00
use 5.38.0;
use Test2::V0;
use Path::Tiny;
use Part2;
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;