Testing tests
This commit is contained in:
1
tests/__init__.py
Normal file
1
tests/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
import ziffers
|
||||||
13
tests/run_tests.py
Normal file
13
tests/run_tests.py
Normal 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
|
||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user