My solutions to Advent of Code.
Each day of each year is implemented in a package of the form
:aoc<year>.<day>
which has a function named day<day>
that returns
the solutions of that day's part 1 and part 2 as multiple values. For
example: day 11 from year 2021 is implemented in the package
:aoc2021.11
and has a function day11
.
To run all tests use (asdf:test-system :advent-of-code)
:
CL-USER> (asdf:test-system :advent-of-code)
In order to run a test for a specific day call parachute:test
with
that day's package as argument, e.g. for day 14 of the 2021 event or
day 10 of the 2022 event:
AOC2021.14> (parachute:test *package*)
...
AOC2021.14> (parachute:test (find-package :aoc2022.10))
...
This repository doesn't include the problems' inputs or examples, see this. You can't just clone it and run the tests or the code right away, you'll need to provide the inputs yourself which will likely be different from my own so the tests as they are defined probably don't make any sense for you.