corrections
This commit is contained in:
parent
42b8049d31
commit
0843624f17
3 changed files with 17 additions and 11 deletions
|
|
@ -1,8 +1,10 @@
|
|||
from advent.common import input
|
||||
|
||||
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
|
||||
|
|
@ -10,9 +12,10 @@ def test_part1():
|
|||
assert result == expected
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_part2():
|
||||
lines = input.read_lines(day_num, 'example01.txt')
|
||||
expected = None
|
||||
expected = (56 * 62)
|
||||
result = part2(lines)
|
||||
assert result == expected
|
||||
|
||||
|
|
@ -20,10 +23,11 @@ def test_part2():
|
|||
def test_parse():
|
||||
lines = input.read_lines(day_num, 'example01.txt')
|
||||
blueprint = Blueprint.parse(next(lines))
|
||||
expected = Blueprint(1, ((0, 0, 0, 4), (0, 0, 0, 2), (0, 0, 14, 3), (0, 7, 0, 2)))
|
||||
expected = Blueprint(1, ((0, 7, 0, 2), (0, 0, 14, 3), (0, 0, 0, 2), (0, 0, 0, 4)))
|
||||
assert blueprint == expected
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_blueprint1():
|
||||
lines = input.read_lines(day_num, 'example01.txt')
|
||||
blueprint = Blueprint.parse(next(lines))
|
||||
|
|
@ -32,6 +36,7 @@ def test_blueprint1():
|
|||
assert result == expected
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_blueprint2():
|
||||
lines = input.read_lines(day_num, 'example01.txt')
|
||||
next(lines)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue