Skip to content

Commit

Permalink
Add part 2 outline
Browse files Browse the repository at this point in the history
  • Loading branch information
mjalkio committed Dec 3, 2023
1 parent 523028b commit a30a586
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion year_2023/day03/gear_ratios.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ def sum_part_numbers(puzzle_input):
return answer


def sum_gear_ratios(puzzle_input):
return 0


if __name__ == "__main__":
puzzle_input = read_puzzle_input()

print(f"Part 1: {sum_part_numbers(puzzle_input)}")
print(f"Part 2: {sum_part_numbers(puzzle_input)}")
print(f"Part 2: {sum_gear_ratios(puzzle_input)}")
5 changes: 5 additions & 0 deletions year_2023/day03/test_gear_ratios.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
from util import read_puzzle_input
from year_2023.day03.gear_ratios import (
sum_gear_ratios,
sum_part_numbers,
)


def test_sum_part_numbers():
assert sum_part_numbers(read_puzzle_input("test_input.txt")) == 4361


def test_sum_gear_ratios():
assert sum_gear_ratios(read_puzzle_input("test_input.txt")) == 467835

0 comments on commit a30a586

Please sign in to comment.