First tests for the iterator

This commit is contained in:
2023-02-06 19:53:26 +02:00
parent 1629a41d79
commit 5836a43a80
5 changed files with 170 additions and 53 deletions

View File

@ -47,3 +47,7 @@ def test_parsing_text(pattern: str):
)
def test_pcs(pattern: str, expected: list):
assert parse_expression(pattern).pcs() == expected
# TODO: Add tests for octaves
# ("__6 _0 _1 _2 _3 _4 _5 _6 0 1 2 3 4 5 6 ^0 ^1 ^2 ^3 ^4 ^5 ^6 ^^0", [-2, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2]),
# ("_ 1 _2 <3>3 ^^4", [-1,-2,3,-1]),