rename test01.txt to example01.txt
This commit is contained in:
parent
098e36e2d3
commit
150bf3e15b
32 changed files with 66 additions and 58 deletions
|
|
@ -4,21 +4,21 @@ from .solution import Command, day_num, part1, part2, simulate
|
|||
|
||||
|
||||
def test_part1():
|
||||
data = input.read_lines(day_num, 'test01.txt')
|
||||
data = input.read_lines(day_num, 'example01.txt')
|
||||
expected = 13
|
||||
result = part1(data)
|
||||
assert result == expected
|
||||
|
||||
|
||||
def test_part2():
|
||||
data = input.read_lines(day_num, 'test02.txt')
|
||||
data = input.read_lines(day_num, 'example02.txt')
|
||||
expected = 36
|
||||
result = part2(data)
|
||||
assert result == expected
|
||||
|
||||
|
||||
def test_short():
|
||||
data = input.read_lines(day_num, 'test01.txt')
|
||||
data = input.read_lines(day_num, 'example01.txt')
|
||||
expected = 13
|
||||
lst = (Command.parse(line) for line in data)
|
||||
result = simulate(lst, 2)
|
||||
|
|
@ -26,7 +26,7 @@ def test_short():
|
|||
|
||||
|
||||
def test_long1():
|
||||
data = input.read_lines(day_num, 'test01.txt')
|
||||
data = input.read_lines(day_num, 'example01.txt')
|
||||
expected = 1
|
||||
lst = (Command.parse(line) for line in data)
|
||||
result = simulate(lst, 10)
|
||||
|
|
@ -34,7 +34,7 @@ def test_long1():
|
|||
|
||||
|
||||
def test_long2():
|
||||
data = input.read_lines(day_num, 'test02.txt')
|
||||
data = input.read_lines(day_num, 'example02.txt')
|
||||
expected = 36
|
||||
lst = (Command.parse(line) for line in data)
|
||||
result = simulate(lst, 10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue