test(B05 노선 저장 시험): 346-3 도우미 옛 모양 맞춤 — stationSnap() 대신 snap() {켬끔 · 간격} · 초안 stationSnapStep 칸 확인 (401-2)
까닭: 390-5 에서 Apply 가 snap() 한 벌(stationSnap · stationSnapStep)을 받게 바뀌었는데 도우미가 옛 stationSnap() 을 넘겨 6 오류. 제품은 맞음 — 시험만 고침. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ji4nuyLVHcxrXWHTdb5nRD
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
@@ -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"] # 손으로 고친 노선 = 초기값 그대로
|
||||
|
||||
Reference in New Issue
Block a user