From a01234968d712bbc66d8383f7f4911938bb85e5c Mon Sep 17 00:00:00 2001 From: Miika Alonen Date: Tue, 31 Jan 2023 23:38:16 +0200 Subject: [PATCH] Testing tests --- tests/__init__.py | 1 + tests/run_tests.py | 13 +++++++++++++ ziffers/__pycache__/__init__.cpython-311.pyc | Bin 311 -> 311 bytes ziffers/__pycache__/parser.cpython-311.pyc | Bin 1025 -> 1025 bytes 4 files changed, 14 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/run_tests.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..a4e4a35 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1 @@ +import ziffers \ No newline at end of file diff --git a/tests/run_tests.py b/tests/run_tests.py new file mode 100644 index 0000000..b69c9aa --- /dev/null +++ b/tests/run_tests.py @@ -0,0 +1,13 @@ +import pytest +from ziffers import * + +@pytest.mark.parametrize( + "pattern", + [ + "1 2 3", + "(1 (2 3))" + "q 2 q2 eq.4" + ], +) +def test_list_arithmetic(pattern: str): + assert parse_expression(pattern).text == pattern \ No newline at end of file diff --git a/ziffers/__pycache__/__init__.cpython-311.pyc b/ziffers/__pycache__/__init__.cpython-311.pyc index 3b976db42000e000500ba8ca120b7da4c10b5d22..1de4bd2664f91eedaa13e9489207ad5ab560a2eb 100644 GIT binary patch delta 19 Zcmdnaw4I4-IWI340}#A!*~q2K2mmnA1fT!_ delta 19 Zcmdnaw4I4-IWI340}z