This is my advent of code repo containing Advent of code challenges written in Elixir.
Each day is contained in a single test file, the current state of all tests is:
Make sure you have Erlang and Elixir installed on your machine, either through Homebrew or apt-get or alternatively through ASDF
Once installed execute the following command on a terminal in this repository:
mix deps.get
All challenges are written as Uni tests in the test directory. You can check the challenges out in the test directory or better yet; you can execute them!
The main test command will run all the tests in alphabetical order (so per day and per challenge) in a trace-view mode.
Most tests will execute an assert on demo-data first and then put the result of the real test in the console output.
mix test
You can execute individual days (or even challenges) by executing any of the below:
mix test test/01/day_1_test.exs
mix test test/01/day_1_test.exs:78