Testing tests

This commit is contained in:
2023-01-31 23:38:16 +02:00
parent 1acddb069f
commit a01234968d
4 changed files with 14 additions and 0 deletions

1
tests/__init__.py Normal file
View File

@ -0,0 +1 @@
import ziffers

13
tests/run_tests.py Normal file
View File

@ -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