- logic 새 파일 9 — B06_Section_Cross_Culvert · _Culvert_Geom · _Culvert_Extra · _Culvert_Tiers · _Culvert_Types · _Culvert_Wire · _Box_Geom · _Ford_Geom · _Ford_Pavement - 그림 파일(UI_Cross_Culvert · _Culvert_Types · _Box · _Ford · _Ford_Pavement)은 받은 좌표로 그리기만 · 관 겹 꼭짓점(pipeShellCorners) · 물넘이 노면 끝 · 월류선 · 유출 성토선은 logic 으로 - 옛 순수 기하 6 파일(UI_Cross_Culvert_Geom · _Extra · _Tiers · _Wire · _Box_Geom · _Ford_Geom) 지움 · 부르는 쪽(B05 Corridor · Structure_Layouts · Route_Carry_Patch · Wall 등)은 import 줄만 - test_472_3 GEOMETRY_PULLS 자기 11 줄 + 더는 안 끌리는 Design_Surface 1 줄 걷음 - 시험 · helper 경로를 새 logic 파일로 — 옮긴 파일을 가리키던 낡은 경로 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",
|
|
"B06_Section_UI_Cross_Wall.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
|