1
0
Fork 0

formatting and cosmetic updates to 2020.

This commit is contained in:
Gabe Venberg 2026-04-17 16:21:34 +02:00
parent 84c4cf9991
commit cd75e58f77
28 changed files with 320 additions and 287 deletions

View file

@ -0,0 +1,28 @@
#! /usr/bin/env python3
import pathlib
import pytest
import temp as aoc
PUZZLE_DIR = pathlib.Path(__file__).parent
#these test fixtures setup the test, mainly by reading the filename into a string in this simple case.
@pytest.fixture
def example():
puzzle_input = (PUZZLE_DIR / "example.txt").read_text().strip()
return aoc.parse(puzzle_input)
@pytest.mark.skip(reason="Not implemented")
def test_parse_example(example):
"""Test that input is parsed properly"""
assert example == ...
@pytest.mark.skip(reason="Not implemented")
def test_part1_example(example):
"""Test part 1 on example input"""
assert aoc.part1(example) == ...
@pytest.mark.skip(reason="Not implemented")
def test_part2_example(example):
"""Test part 2 on example input"""
assert aoc.part2(example) == ...