This commit is contained in:
Yanick Champoux 2023-12-02 13:32:51 -05:00
parent 4c98ac6a61
commit c1984999cf
3 changed files with 16 additions and 13 deletions

View File

@ -6,9 +6,12 @@ use Path::Tiny;
use Part1;
is Part1::parse_line("Game 1: 3 blue, 4 red; 1 red, 2 green, 6 blue; 2 green") => +{ game => 1,
blue => 6, red => 4, green => 2
is Part1::parse_line(
"Game 1: 3 blue, 4 red; 1 red, 2 green, 6 blue; 2 green") => +{
game => 1,
blue => 6,
red => 4,
green => 2
};
is Part1::solution_1( <<'END' ) => 8;