Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 588 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 588 Bytes

Elixir Advent of Code 2019

Solutions for https://adventofcode.com/2019 in elixir-lang (https://elixir-lang.org/)

Run

Get dependencies and run tests with

$ mix deps.get
$ mix test

Challenge solutions are in tests as assertions:

defmodule Advent1Test do
  use ExUnit.Case

  test "resolve level" do
    assert Advent1.resolve == 3262358
  end

end

To use temporary dev docker container

$ docker run --rm -itv $PWD:/app -w /app elixir:alpine sh
# mix test

or just run tests

$ docker run --rm -itv $PWD:/app -w /app elixir:alpine mix test