my-solutions/advent-of-code-2023/elixir/day_08/test/navigator_test.exs
Ivan Reshetnikov 10872cf5db
aoc: solve day 8
Signed-off-by: Ivan Reshetnikov <admin@comfycamp.space>
2024-07-19 00:24:41 +05:00

17 lines
424 B
Elixir

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