summaryrefslogtreecommitdiff
path: root/tests/test_error_codes.py
diff options
context:
space:
mode:
authortanaka takashi <isazaka@gmail.com>2026-07-11 21:48:34 +0900
committertanaka takashi <isazaka@gmail.com>2026-07-11 21:48:34 +0900
commit4ed98f4ec8d354f8fdb009f0b7829c2628adb2a6 (patch)
tree07fd47ae951fa3ad776834e4876764adb09d5068 /tests/test_error_codes.py
parent79cd969c98893e04382fe6075f420589c3a1652e (diff)
fix: stdio transport 起動時の TypeError 修正とトラック外コマンド警告の追加
Diffstat (limited to 'tests/test_error_codes.py')
-rw-r--r--tests/test_error_codes.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_error_codes.py b/tests/test_error_codes.py
index 496ce84..eca73ad 100644
--- a/tests/test_error_codes.py
+++ b/tests/test_error_codes.py
@@ -82,6 +82,19 @@ def test_syntax_unexpected_token(compose_mml):
assert result["valid"] is True
+# --- SYNTAX_OUTSIDE_TRACK ---
+def test_syntax_outside_track_ppmck(compose_mml):
+ result = compose_mml(action="validate", mml="t120\nA l4\n c", mode="ppmck")
+ assert result["valid"] is True
+ assert _find_code(result, ErrorCode.SYNTAX_OUTSIDE_TRACK.value, "warnings")
+
+
+def test_syntax_outside_track_pyxel(compose_mml):
+ result = compose_mml(action="validate", mml="T120\n0: L4\n C", mode="pyxel")
+ assert result["valid"] is True
+ assert _find_code(result, ErrorCode.SYNTAX_OUTSIDE_TRACK.value, "warnings")
+
+
# --- SYNTAX_UNTERMINATED_REPEAT ---
def test_syntax_unterminated_repeat_pyxel(compose_mml):
result = compose_mml(action="validate", mml="0: T120 L4\n[ C D", mode="pyxel")