my-solutions/advent-of-code-2023/elixir/day_08/test/navigator_test.exs

18 lines
424 B
Elixir
Raw Normal View History

defmodule NavigatorTest do
use ExUnit.Case
doctest Navigator
doctest Parser
test "part 1" do
{instructions, maps} = Parser.parse_file("input.txt")
res = Navigator.count_steps(instructions, maps)
IO.puts("Part 1: #{res}")
end
test "part 2" do
{instructions, maps} = Parser.parse_file("input.txt")
res = Navigator.count_ghost_steps(instructions, maps)
IO.puts("Part 2: #{res}")
end
end