From b062e0f2abc189f352e019bac6854f469e9dfc8c Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Fri, 3 Dec 2021 14:15:14 +0100 Subject: Added tests --- aoc/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'aoc/__init__.py') diff --git a/aoc/__init__.py b/aoc/__init__.py index 07a5fe7..b13489c 100644 --- a/aoc/__init__.py +++ b/aoc/__init__.py @@ -4,9 +4,13 @@ from typing import Generator, Any, Iterator class BaseAssignment(ABC): + example_result = NotImplemented def __init__(self, path): self.path = path + def __str__(self): + return f'{self.__module__}.{self.__class__.__name__}' + def parse_item(self, item: str) -> Any: return item @@ -20,4 +24,4 @@ class BaseAssignment(ABC): yield self.parse_item(line.strip()) def run(self, input: Iterator) -> Any: - raise NotImplementedError('Please implement run') + raise NotImplementedError('Please implement run') \ No newline at end of file -- cgit v1.2.3