mirror of
https://github.com/Noettore/AdventOfCode.git
synced 2025-10-15 19:56:39 +02:00
AoC 2015: day3, wrong test function name
Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
This commit is contained in:
@@ -46,12 +46,12 @@ def part2(entries: str) -> int:
|
|||||||
houses[(pos_x_robot, pos_y_robot)] = houses.get((pos_x_robot, pos_y_robot), 0) + 1
|
houses[(pos_x_robot, pos_y_robot)] = houses.get((pos_x_robot, pos_y_robot), 0) + 1
|
||||||
return len(houses)
|
return len(houses)
|
||||||
|
|
||||||
def test_input_day_2():
|
def test_input_day_3():
|
||||||
"""pytest testing function"""
|
"""pytest testing function"""
|
||||||
assert part1(TEST_INPUT) == 2
|
assert part1(TEST_INPUT) == 2
|
||||||
assert part2(TEST_INPUT) == 11
|
assert part2(TEST_INPUT) == 11
|
||||||
|
|
||||||
def test_bench_day_2(benchmark):
|
def test_bench_day_3(benchmark):
|
||||||
"""pytest-benchmark function"""
|
"""pytest-benchmark function"""
|
||||||
benchmark(main)
|
benchmark(main)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user