15 lines
365 B
Elixir
15 lines
365 B
Elixir
defmodule Day2Test do
|
|
use ExUnit.Case
|
|
doctest Day2
|
|
|
|
test "Part 1 example input" do
|
|
input_file = File.read("input/day2_example.txt")
|
|
assert Day2.part1(elem(input_file, 1)) == 1_227_775_554
|
|
end
|
|
|
|
test "Part 2 example input" do
|
|
input_file = File.read("input/day2_example.txt")
|
|
assert Day2.part2(elem(input_file, 1)) == 4_174_379_265
|
|
end
|
|
end
|