summaryrefslogtreecommitdiff
path: root/tests/test_lexer.py
diff options
context:
space:
mode:
authortanaka takashi <isazaka@gmail.com>2026-07-12 16:03:29 +0900
committertanaka takashi <isazaka@gmail.com>2026-07-12 16:03:29 +0900
commit22f96694a96ed9fba169e77bc27d19d00edca083 (patch)
tree8f59c1d3f211c296b005a3f6ede8206bc3675a68 /tests/test_lexer.py
parent3bb311ad8e0f10617805c8737d92d13e6a627818 (diff)
MML構文解析処理を追加
Diffstat (limited to 'tests/test_lexer.py')
-rw-r--r--tests/test_lexer.py10
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)