diff options
author | Matias Linares <matiaslina@gmail.com> | 2020-12-05 10:55:56 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2020-12-05 10:55:56 -0300 |
commit | a0fcb600572ea0da9dee1b5b9e7a24ce674ebe7e (patch) | |
tree | a663ee4f6a427e98db0878ca539c9288bfbc70d0 /2017/t/02-day.t | |
parent | 5fa17cd54a1170449a91da48a2fe88a99349daa2 (diff) | |
download | advent-of-code-a0fcb600572ea0da9dee1b5b9e7a24ce674ebe7e.tar.gz |
Add 2018 and 2017
Diffstat (limited to '2017/t/02-day.t')
-rw-r--r-- | 2017/t/02-day.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2017/t/02-day.t b/2017/t/02-day.t new file mode 100644 index 0000000..787caff --- /dev/null +++ b/2017/t/02-day.t @@ -0,0 +1,23 @@ +use v6; +use Test; +use AdventOfCode; + +plan 2; + +# First part +my @mat = ( + <5 1 9 5>, + <7 5 3>, + <2 4 6 8>, +); + +is checksum(@mat), 18; + +# Second part +my @spreadsheet2 = ( + <5 9 2 8>, + <9 4 7 3>, + <3 8 6 5>, +); + +is evenly-divisible-values(@spreadsheet2), 9; |