From 6407cf22def09de43ec2ec02692c0e4ea3b17742 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 23 Sep 2025 11:38:46 -0400 Subject: Add interpretation tests, fix some interpretation issues --- tests/__init__.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/__init__.py') diff --git a/tests/__init__.py b/tests/__init__.py index 5616c23..8bfbe38 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,6 +1,7 @@ import unittest import os -from tests import parsing, errors, location +from tests import parsing, errors, location, interpretation +import sys class TestParsing(unittest.TestCase): def test_all(self) -> None: @@ -26,6 +27,14 @@ class TestLocation(unittest.TestCase): with self.subTest(file): location.test_path(self, f'{test_dir}/{file}') +class TestInterpretation(unittest.TestCase): + def test_all(self) -> None: + test_dir = '../tests/interpretation' + for file in os.listdir(test_dir): + if not file.endswith('.pom'): continue + with self.subTest(file): + interpretation.test_path(self, f'{test_dir}/{file}') + if __name__ == '__main__': unittest.main() -- cgit v1.2.3