Skip to content

Commit

Permalink
Merge pull request #225 from Stegallo/2023
Browse files Browse the repository at this point in the history
test day3
  • Loading branch information
Stegallo authored Dec 9, 2023
2 parents 481cc1b + c18f311 commit 2350bb8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/y_2023/test_2023_day3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from __future__ import annotations

from unittest.mock import mock_open, patch

from y_2023.day3 import Day, Number, extract_numbers

with patch("builtins.open", mock_open(read_data="0")):
day = Day()


def test_extract_numbers():
print()
res = extract_numbers("467..114..", 0)
print(f"{res=}")
assert res == [
Number(467, 0, 0, 3),
Number(114, 0, 5, 3),
]
assert extract_numbers("467", 0) == [Number(467, 0, 0, 3)]
# assert False


def test__preprocess_input():
assert True


def test_calculate_1():
assert True


def test_calculate_2():
assert True

0 comments on commit 2350bb8

Please sign in to comment.