mirror of
https://github.com/rjNemo/ai_advent_code_2024
synced 2026-06-06 02:26:44 +00:00
chore: run formatter
This commit is contained in:
parent
ebf68345ad
commit
5fd3901892
2 changed files with 4 additions and 3 deletions
|
|
@ -3,8 +3,8 @@ defmodule AdventCode2024 do
|
||||||
Documentation for `AdventCode2024`.
|
Documentation for `AdventCode2024`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
defdelegate solve_day1(input_file \\ "priv/inputs/day1/input.txt"),
|
defdelegate solve_day1(input_file \\ "priv/inputs/day1/input.txt"),
|
||||||
to: AdventCode2024.Solutions.Day1,
|
to: AdventCode2024.Solutions.Day1,
|
||||||
as: :solve
|
as: :solve
|
||||||
|
|
||||||
defdelegate solve_day1_part2(input_file \\ "priv/inputs/day1/input.txt"),
|
defdelegate solve_day1_part2(input_file \\ "priv/inputs/day1/input.txt"),
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,14 @@ defmodule AdventCode2024.Solutions.Day1Test do
|
||||||
setup do
|
setup do
|
||||||
# Ensure the fixtures directory exists
|
# Ensure the fixtures directory exists
|
||||||
File.mkdir_p!("test/fixtures/day1")
|
File.mkdir_p!("test/fixtures/day1")
|
||||||
|
|
||||||
# Create test input file
|
# Create test input file
|
||||||
test_content = """
|
test_content = """
|
||||||
1 2
|
1 2
|
||||||
3 4
|
3 4
|
||||||
5 6
|
5 6
|
||||||
"""
|
"""
|
||||||
|
|
||||||
File.write!(@test_input, test_content)
|
File.write!(@test_input, test_content)
|
||||||
|
|
||||||
on_exit(fn ->
|
on_exit(fn ->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue