Files
ziffers-python/tests/run_tests.py
2023-01-31 23:38:16 +02:00

13 lines
244 B
Python

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