my-solutions/advent-of-code-2023/elixir/day_07/test/solution_test.exs

22 lines
508 B
Elixir

defmodule SolutionTest do
use ExUnit.Case
doctest Solution
test "example 1" do
assert Solution.get_total_winnings("test/example.txt") == 6440
end
test "part 1" do
res = Solution.get_total_winnings("test/input.txt")
IO.puts("First answer: #{res}")
end
test "example 2" do
assert Solution.get_total_winnings("test/example.txt", true) == 5905
end
test "part 2" do
res = Solution.get_total_winnings("test/input.txt", true)
IO.puts("Second answer: #{res}")
end
end