day19 slightly improved

This commit is contained in:
Ruediger Ludwig 2023-01-19 10:11:39 +01:00
parent cee40d1003
commit f59089d5eb
2 changed files with 27 additions and 36 deletions

View file

@ -4,7 +4,6 @@ from .solution import Blueprint, day_num, part1, part2
import pytest
@pytest.mark.skip
def test_part1():
lines = input.read_lines(day_num, 'example01.txt')
expected = 33
@ -23,11 +22,11 @@ def test_part2():
def test_parse():
lines = input.read_lines(day_num, 'example01.txt')
blueprint = Blueprint.parse(next(lines))
expected = Blueprint(1, ((0, 7, 0, 2), (0, 0, 14, 3), (0, 0, 0, 2), (0, 0, 0, 4)))
expected = Blueprint(1, ((0, 7, 0, 2), (0, 0, 14, 3),
(0, 0, 0, 2), (0, 0, 0, 4)), (0, 7, 14, 4))
assert blueprint == expected
@pytest.mark.skip
def test_blueprint1():
lines = input.read_lines(day_num, 'example01.txt')
blueprint = Blueprint.parse(next(lines))