From 9fe830de52f0d1eab823aabe3b8acdb11f8ccf6b Mon Sep 17 00:00:00 2001 From: Chris Erwin Date: Tue, 28 Nov 2023 07:49:12 -0500 Subject: [PATCH] stub out 2022 day 4 --- advent/advent2022/__init__.py | 3 ++- advent/advent2022/day4.py | 6 ++++++ inputs/2022/day4input.txt | 0 tests/test_2022day4.py | 10 ++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 advent/advent2022/day4.py create mode 100644 inputs/2022/day4input.txt create mode 100644 tests/test_2022day4.py diff --git a/advent/advent2022/__init__.py b/advent/advent2022/__init__.py index 271ea01..f41d237 100644 --- a/advent/advent2022/__init__.py +++ b/advent/advent2022/__init__.py @@ -1,5 +1,6 @@ from .day1 import Day1 from .day2 import Day2 from .day3 import Day3 +from .day4 import Day4 -days = {1: Day1, 2: Day2, 3: Day3} +days = {1: Day1, 2: Day2, 3: Day3, 4: Day4} diff --git a/advent/advent2022/day4.py b/advent/advent2022/day4.py new file mode 100644 index 0000000..d3c30a4 --- /dev/null +++ b/advent/advent2022/day4.py @@ -0,0 +1,6 @@ +from advent.day import Day + + +class Day4(Day): + year = 2022 + day = 4 diff --git a/inputs/2022/day4input.txt b/inputs/2022/day4input.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_2022day4.py b/tests/test_2022day4.py new file mode 100644 index 0000000..754bac4 --- /dev/null +++ b/tests/test_2022day4.py @@ -0,0 +1,10 @@ +import unittest +import pytest +from .test_day import DayTest +from advent.advent2022 import day4 + +@pytest.mark.day +class TestDay4(DayTest): + test_day = day4.Day4() + expected_part_1 = "Advent 2022 Day 4 part 1 not yet implemented." + expected_part_2 = "Advent 2022 Day 4 part 2 not yet implemented."