diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-07-12 16:03:29 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-07-12 16:03:29 +0900 |
| commit | 22f96694a96ed9fba169e77bc27d19d00edca083 (patch) | |
| tree | 8f59c1d3f211c296b005a3f6ede8206bc3675a68 /tests/test_lexer.py | |
| parent | 3bb311ad8e0f10617805c8737d92d13e6a627818 (diff) | |
MML構文解析処理を追加
Diffstat (limited to 'tests/test_lexer.py')
| -rw-r--r-- | tests/test_lexer.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_lexer.py b/tests/test_lexer.py index 1bb2213..64fa17c 100644 --- a/tests/test_lexer.py +++ b/tests/test_lexer.py @@ -25,3 +25,13 @@ def test_pyxel_repeat(): tokens = tokenize("[ C D ]2", "pyxel") assert any(t.type == TokenType.REPEAT_START for t in tokens) assert any(t.type == TokenType.REPEAT_END for t in tokens) + + +def test_ppmck_invalid_token(): + tokens = tokenize("A t120 l4 o4 x c", "ppmck") + assert any(t.type == TokenType.INVALID for t in tokens) + + +def test_pyxel_invalid_token(): + tokens = tokenize("0: T120 L4 O4 X C", "pyxel") + assert any(t.type == TokenType.INVALID for t in tokens) |
