advent-of-code/2022-elixir/test/solutions/day_02_test.exs
Anders Ytterström df5cfbd030 Add solutions for 2022:2 Rock Paper Scissors
Verbose code, and with bad naming. Good enough for now.
2023-11-20 20:53:58 +01:00

27 lines
438 B
Elixir

defmodule Day02Test do
use ExUnit.Case
doctest Aoc.Solution.Day02
import Aoc.Solution.Day02
@input ~s(
A Y
B X
C Z
)
test "02: Rock Paper Scissors, part 1" do
expected = 15
result = @input |> parse!() |> solve()
assert result == expected
end
test "02: Rock Paper Scissors, part 2" do
expected = 12
result = @input |> parse!() |> solve_again()
assert result == expected
end
end