16 lines
314 B
Elixir
16 lines
314 B
Elixir
defmodule AdventOfCode.Day02.Part1Test do
|
|
use AdventOfCode.PuzzleCase, module: AdventOfCode.Day02.Part1
|
|
|
|
test "returns the product of horizontal position and depth" do
|
|
input = ~S"""
|
|
forward 5
|
|
down 5
|
|
forward 8
|
|
up 3
|
|
down 8
|
|
forward 2
|
|
"""
|
|
|
|
assert_solution(input, 150)
|
|
end
|
|
end
|