- 충돌 24 파일 = import 줄 다툼 — 518-2 새 경로(Cross_Culvert · Culvert_Geom · Extra · Wire · Types · Box_Geom · Ford_Geom · Ford_Pavement) + 518-3 새 경로(Cross_Body_Guard · Wall_Geom · Wall_Hatch_Geom · Excavation_Geom · Revetment_Geom · Structure_Layouts · Route_Carry_Patch)
- 518-2 logic 셋이 부르던 UI_Cross_Wall · Wall_Hatch · Body_Guard = 518-3 logic 경로로 · 518-3 새 logic 넷의 옛 Culvert_Types · Extra 경로 = 518-2 logic 으로
- test_472_3 GEOMETRY_PULLS 남은 3 줄(Design_Surface · Excavation · Wall_Hatch) 걷음 = 빈 목록
- Corridor_Structures prettier
- 확인 = 518-1 · 518-2 · 518-3 고친 시험 + golden_472 73 파일 444 통과 · typecheck 0 · design-calc · corridor 묶음 · 옛 판(1d5d63875) ↔ 합친 판 덧그림 대조 938 측점 같음
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.6 KiB
Python
43 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""B06 벽 전면 기울기도 **품셈 표준경사 표**를 읽음 — B5 (2026-09-14 브레인 판정 「양쪽 다 이 표를」).
|
|
|
|
2026-09-22 sub1: B08 쪽 파이썬 대조(`B08_Quantity_Engine_UnitQuantity_StoneSpec`)는 B08 이
|
|
`old_code/` 로 끊기며 같이 죽었음 — 그 대조 시험은 빼고, **B06 몫**(표 경로가 최신판인지 ·
|
|
벽 모양이 붙박이 기울기를 더는 안 곱하는지)만 되살림.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import re
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
if str(ROOT) not in sys.path:
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
DATA_DIR = ROOT / "resources" / "data_masonry"
|
|
|
|
GEOMETRY = [
|
|
"logic/B06_Section_Cross_Culvert_Geom.ts",
|
|
"logic/B06_Section_Cross_Wall_Geom.ts",
|
|
"logic/B06_Section_Cross_Culvert_Extra.ts",
|
|
"logic/B06_Section_UI_Cross_Culvert_Solve.ts",
|
|
]
|
|
|
|
|
|
def test_횡단도가_최신_표준경사_판을_읽는다() -> None:
|
|
const = (ROOT / "B06_Section" / "logic" / "B06_Section_UI_Cross_Lean.ts").read_text(
|
|
encoding="utf-8"
|
|
)
|
|
latest = sorted(DATA_DIR.glob("masonry_slope_*.json"))[-1].name
|
|
imported = re.search(r'from "\.\./\.\./resources/data_masonry/(masonry_slope_[^"]+)"', const)
|
|
assert imported and imported.group(1) == latest
|
|
|
|
|
|
def test_벽_모양이_붙박이_기울기를_안_곱한다() -> None:
|
|
"""벽 모양 파일마다 `REVET_LEAN_RATIO *` 곱이 남아 있으면 그 벽은 아직 1:0.3 붙박이."""
|
|
for name in GEOMETRY:
|
|
source = (ROOT / "B06_Section" / name).read_text(encoding="utf-8")
|
|
assert not re.search(r"REVET_LEAN_RATIO\s*[*/]", source), name
|