feat(B05): 노면공 시작 · 종료 측점 · 길이 출력 · 기준 · 전/후 없음(87-1)

- 노면공 명세 byRange: 위치 줄 = 시작 · 종료 측점만(기준 측점 칸 없음 · 알약 = 시점) · 상세 내용 = 포장사양 → 길이(시작~종료 출력) → 높이
- 포장사양 선택지 콘크리트 · 아스콘 · 쇄석 · 높이 기본 0.20 m
- 저장 꼴: placement interval · start_m · end_m · options.pave_spec · height_m · 옛 length_m · before_m · after_m 은 [수정] 저장 때 뺌
- 구조물정의 판 20(판_19 이력) · 노면공 길이 · 전 · 후 옵션 빼고 height_m 기본값
- 시험: test_52_10 맞춤

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BVPp2o6Mh2FZJr72yW3ofZ
This commit is contained in:
2026-10-08 12:03:38 +09:00
co-authored by Claude Sonnet 5.5
parent e25b9ddf2f
commit fc36f0ae4e
11 changed files with 3879 additions and 31 deletions
@@ -46,11 +46,14 @@ if (process.argv[2] === "road") {
same: spec === road.PAVEMENT_SPEC,
containers: spec.containers.map((c) => [c.id, c.title, c.required, c.link]),
choices: road.PAVE_SPEC_CHOICES.map((c) => c.value),
items: spec.containers[0].items.map((i) => [i.id, i.label, i.kind]),
state,
edited: s.writeOptions(spec, edited),
cleared: s.writeOptions(spec, cleared),
keys: s.specKeys(spec),
retired: spec.retired,
dropped: spec.dropped,
byRange: spec.byRange,
}),
);
process.exit(0);
@@ -36,7 +36,15 @@ def test_명세_등록_필수_컨테이너_하나(out):
def test_포장사양_선택지는_명세_한_곳(out):
assert out["choices"] == ["콘크리트"]
assert out["choices"] == ["콘크리트", "아스콘", "쇄석"]
def test_상세내용_차례_포장사양_길이_출력_높이(out):
assert out["items"] == [
["spec", "포장사양", "select"],
["length", "길이 (m)", "auto"],
["height", "높이 (m)", "number"],
]
def test_저장_키_왕복_옛_칸은_명세_밖(out):
@@ -44,7 +52,10 @@ def test_저장_키_왕복_옛_칸은_명세_밖(out):
assert out["edited"] == {"pave_spec": "콘크리트", "height_m": 0.35}
assert out["cleared"] == {"pave_spec": "콘크리트"}
assert out["keys"] == {"keys": ["pave_spec", "height_m"], "prefixes": []}
assert "length_m" not in out["retired"] # 구간 길이 · 전 · 후는 정의 칸 그대로
# 길이 · 기준측점 전/후는 입력 없음 — 시작 · 종료만 받고 옛 값은 저장 때 뺌(87-1)
assert out["byRange"] is True
assert out["dropped"] == ["length_m", "before_m", "after_m"]
assert "length_m" not in out["retired"]
assert set(out["retired"]) == {
"thickness_cm",
"width_m",
@@ -62,4 +73,7 @@ def test_기타_상세_종류_이름_글_칸():
name = next(o for o in etc["options"] if o["key"] == "name")
assert name["label"] == "상세 종류 이름" and name["input"] == "text"
pave = next(t for t in doc["types"] if t["type_id"] == "pavement_concrete")
assert [o["key"] for o in pave["options"]][:3] == ["length_m", "before_m", "after_m"]
keys = [o["key"] for o in pave["options"]]
assert not {"length_m", "before_m", "after_m"} & set(keys) # 87-1 시작 · 종료 직접 입력
height = next(o for o in pave["options"] if o["key"] == "height_m")
assert height["default"] == 0.2