From ff435f4a3740e7b77a64f1aa7ed18b6a367c0da3 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sat, 17 Oct 2026 22:08:43 +0900 Subject: [PATCH] =?UTF-8?q?test(B05=20=EB=85=B8=EC=84=A0=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EC=8B=9C=ED=97=98):=20346-3=20=EB=8F=84=EC=9A=B0?= =?UTF-8?q?=EB=AF=B8=20=EC=98=9B=20=EB=AA=A8=EC=96=91=20=EB=A7=9E=EC=B6=A4?= =?UTF-8?q?=20=E2=80=94=20stationSnap()=20=EB=8C=80=EC=8B=A0=20snap()=20{?= =?UTF-8?q?=EC=BC=AC=EB=81=94=20=C2=B7=20=EA=B0=84=EA=B2=A9}=20=C2=B7=20?= =?UTF-8?q?=EC=B4=88=EC=95=88=20stationSnapStep=20=EC=B9=B8=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8=20(401-2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 까닭: 390-5 에서 Apply 가 snap() 한 벌(stationSnap · stationSnapStep)을 받게 바뀌었는데 도우미가 옛 stationSnap() 을 넘겨 6 오류. 제품은 맞음 — 시험만 고침. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ji4nuyLVHcxrXWHTdb5nRD --- resources/tester/helper_346_3_route_save.cjs | 2 +- resources/tester/test_346_3_route_save_screen.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/tester/helper_346_3_route_save.cjs b/resources/tester/helper_346_3_route_save.cjs index 173ab21be..b575f2e8d 100644 --- a/resources/tester/helper_346_3_route_save.cjs +++ b/resources/tester/helper_346_3_route_save.cjs @@ -120,7 +120,7 @@ const apply = loadTs(path.join(ROOT, "B05_Profile", "B05_Profile_UI_RouteEdit_Ap }), changed: () => changed, terrain: () => "sheet", - stationSnap: () => true, + snap: () => ({ stationSnap: true, stationSnapStep: 20 }), // 390-5 — 켬끔 · 간격 한 벌 initial: { current: () => ({ mode: "follow" }), keep: () => (kept += 1) }, onApplied: () => (rebuilt += 1), }); diff --git a/resources/tester/test_346_3_route_save_screen.py b/resources/tester/test_346_3_route_save_screen.py index 53ea15f9d..a12e4f001 100644 --- a/resources/tester/test_346_3_route_save_screen.py +++ b/resources/tester/test_346_3_route_save_screen.py @@ -49,6 +49,7 @@ def test_초안은_계약_RouteDraft_꼴(out): "curveLock", "curveArc", "stationSnap", + "stationSnapStep", "terrain", } n = len(draft["nodes"]) @@ -57,6 +58,7 @@ def test_초안은_계약_RouteDraft_꼴(out): ) assert draft["curveOn"] == [True, False, True] and draft["curveRadius"] == [None, 25, None] assert draft["stationSnap"] is True and draft["terrain"] == "sheet" + assert draft["stationSnapStep"] == 20 # 390-5 간격도 함께 실림 assert out["body"]["initial"] == {"mode": "follow"} assert "balanced_profile" not in out["body"] # 손으로 고친 노선 = 계획고 옮김만(349-0v) assert "as_initial" not in out["body"] # 손으로 고친 노선 = 초기값 그대로