2022-09-21 09:19:53 -04:00
|
|
|
defmodule AdventOfCode.Day01.Part1Test do
|
|
|
|
use AdventOfCode.PuzzleCase, module: AdventOfCode.Day01.Part1
|
|
|
|
|
2022-09-21 09:19:53 -04:00
|
|
|
test "solves for a small input" do
|
2022-09-21 09:19:53 -04:00
|
|
|
input = ~S"""
|
2022-09-21 09:19:53 -04:00
|
|
|
199
|
|
|
|
200
|
|
|
|
208
|
|
|
|
210
|
|
|
|
200
|
|
|
|
207
|
|
|
|
240
|
|
|
|
269
|
|
|
|
260
|
|
|
|
263
|
2022-09-21 09:19:53 -04:00
|
|
|
"""
|
|
|
|
|
2022-09-21 09:19:53 -04:00
|
|
|
assert_solution(input, 7)
|
2022-09-21 09:19:53 -04:00
|
|
|
end
|
2022-09-21 09:19:53 -04:00
|
|
|
end
|