test(510-1 패널 addPipe 함수로 옮김): 126 · 291-1 소스 글 시험이 찾던 자리 = 패널 addPipe 함수(자동 제안 [넣기]도 같은 길) · 세월교 월류 높이 기다림 · 옮김 검사 그대로

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 12:47:46 +09:00
co-authored by Claude Opus 5.5
parent 88a055ff19
commit a1113c23e6
2 changed files with 5 additions and 2 deletions
@@ -102,7 +102,9 @@ def test_배수유역_패널_배선():
apply.index("callbacks.onPipesChanged?.("),
]
assert order == sorted(order)
add = src[src.index(" addPipe(chainageM, attributes) {") : src.index(" removePipe(")]
# 510 — 패널 addPipe 를 함수로(자동 제안 [넣기]도 같은 길) · 옮김은 updatePipeFacility 그대로
add = src[src.index(" function addPipe(chainageM: number, attributes?: FacilityAttributes): void {") : src.index(" /** 노선 전체가")]
add += src[src.index(" updatePipeFacility(") : src.index(" removePipe(")]
assert "waitsFordHeight(attributes?.facility, attributes?.options)" in add
assert add.index("fordWaits().add(chainageM)") < add.index(
"pipeEditor.addAtChainage(chainageM)"
@@ -60,7 +60,8 @@ def test_고르던_항목만_실시간_반영():
def test_새_세월교_물넘이_월류_높이는_추가_뒤_채움():
drainage = _read("B05_Profile_UI_Drainage_Panel.ts")
body = _body(drainage, " addPipe(chainageM, attributes) {", " updatePipeFacility(")
# 510 — 패널 addPipe 를 함수로(자동 제안 [넣기]도 같은 길)
body = _body(drainage, " function addPipe(chainageM: number, attributes?: FacilityAttributes): void {", " /** 노선 전체가")
assert "fordWaits().add(chainageM)" in body