Skip to content

Commit 5806591

Browse files
committed
fix: add year to 2024 tests
1 parent 0f79357 commit 5806591

28 files changed

+45
-0
lines changed

2023/__init__.py

Whitespace-only changes.

2024/__init__.py

Whitespace-only changes.

2024/solutions/__init__.py

Whitespace-only changes.

2024/tests/test_01.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def test_day01_part1() -> None:
1616
differences between corresponding elements in sorted lists.
1717
"""
1818
TestSolutionUtility.run_test(
19+
year=2024,
1920
day=1,
2021
is_raw=False,
2122
part_num=1,
@@ -30,6 +31,7 @@ def test_day01_part2() -> None:
3031
between matching elements weighted by their frequency.
3132
"""
3233
TestSolutionUtility.run_test(
34+
year=2024,
3335
day=1,
3436
is_raw=False,
3537
part_num=2,

2024/tests/test_02.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def test_day02_part1() -> None:
1818
are between 1 and 3 inclusive.
1919
"""
2020
TestSolutionUtility.run_test(
21+
year=2024,
2122
day=2,
2223
is_raw=False,
2324
part_num=1,
@@ -33,6 +34,7 @@ def test_day02_part2() -> None:
3334
removed from the sequence.
3435
"""
3536
TestSolutionUtility.run_test(
37+
year=2024,
3638
day=2,
3739
is_raw=False,
3840
part_num=2,

2024/tests/test_03.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def test_day03_part1() -> None:
1717
in the format `mul(x,y)` and calculates the sum of all these multiplications.
1818
"""
1919
TestSolutionUtility.run_test(
20+
year=2024,
2021
day=3,
2122
is_raw=False,
2223
part_num=1,
@@ -32,6 +33,7 @@ def test_day03_part2() -> None:
3233
while enabled (between `do()` and `don't()`).
3334
"""
3435
TestSolutionUtility.run_test(
36+
year=2024,
3537
day=3,
3638
is_raw=False,
3739
part_num=2,

2024/tests/test_04.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def test_day04_part1() -> None:
1717
the 2D grid.
1818
"""
1919
TestSolutionUtility.run_test(
20+
year=2024,
2021
day=4,
2122
is_raw=False,
2223
part_num=1,
@@ -32,6 +33,7 @@ def test_day04_part2() -> None:
3233
pattern in the grid.
3334
"""
3435
TestSolutionUtility.run_test(
36+
year=2024,
3537
day=4,
3638
is_raw=False,
3739
part_num=2,

2024/tests/test_05.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def test_day05_part1() -> None:
1616
all sequencing rules and calculates the sum of their middle page numbers.
1717
"""
1818
TestSolutionUtility.run_test(
19+
year=2024,
1920
day=5,
2021
is_raw=False,
2122
part_num=1,
@@ -31,6 +32,7 @@ def test_day05_part2() -> None:
3132
the sum of middle page numbers from these fixed orders.
3233
"""
3334
TestSolutionUtility.run_test(
35+
year=2024,
3436
day=5,
3537
is_raw=False,
3638
part_num=2,

2024/tests/test_06.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def test_day06_part1() -> None:
1717
or creating a loop.
1818
"""
1919
TestSolutionUtility.run_test(
20+
year=2024,
2021
day=6,
2122
is_raw=False,
2223
part_num=1,
@@ -31,6 +32,7 @@ def test_day06_part2() -> None:
3132
position and counts how many modifications cause the guard's path to loop.
3233
"""
3334
TestSolutionUtility.run_test(
35+
year=2024,
3436
day=6,
3537
is_raw=False,
3638
part_num=2,

2024/tests/test_07.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def test_day07_part1() -> None:
1717
numbers reaches the target total.
1818
"""
1919
TestSolutionUtility.run_test(
20+
year=2024,
2021
day=7,
2122
is_raw=False,
2223
part_num=1,
@@ -32,6 +33,7 @@ def test_day07_part2() -> None:
3233
numbers reaches the target total without exceeding it.
3334
"""
3435
TestSolutionUtility.run_test(
36+
year=2024,
3537
day=7,
3638
is_raw=False,
3739
part_num=2,

0 commit comments

Comments
 (0)