From 4ed98f4ec8d354f8fdb009f0b7829c2628adb2a6 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Sat, 11 Jul 2026 21:48:34 +0900 Subject: fix: stdio transport 起動時の TypeError 修正とトラック外コマンド警告の追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_error_codes.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/test_error_codes.py') 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") -- cgit v1.2.3