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

23 lines
508 B
Elixir
Raw Normal View History

2024-06-28 16:33:09 +05:00
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