Merge remote-tracking branch 'origin/sub_laptop_1' into main_laptop_1
This commit is contained in:
@@ -104,6 +104,27 @@ def test_다단_줄이_원단위와_금액_합에_든다() -> None:
|
||||
assert tiers[1]["unconfirmed"]
|
||||
|
||||
|
||||
def test_윗단이_미확정이면_아랫단도_미확정() -> None:
|
||||
"""면적은 첫 미확정 단부터 아래를 없는 것으로 봄(B06) — B08 도 같은 선에서 끊어야 성토·벽이 함께 움직임."""
|
||||
walls = [
|
||||
dict(WALLS[1], key="extra0"),
|
||||
dict(WALLS[0], key="extra1"),
|
||||
] # 1단 미확정 · 2단 높이 적음
|
||||
tiers = _tiers(facility_structures([POINT], {85.0: walls}))
|
||||
assert "다단 높이를 안 적음" in tiers[0]["unconfirmed"]
|
||||
assert "윗단(1단)이 미확정" in tiers[1]["unconfirmed"]
|
||||
|
||||
|
||||
def test_미확정_단은_성토를_안_깎는다() -> None:
|
||||
"""2026-09-14 브레인 판정 — 미확정 벽이 성토만 깎으면 「벽도 성토도 없는 빈 자리」가 생김."""
|
||||
geom = (ROOT / "B06_Section" / "B06_Section_UI_Cross_Culvert_Geom.ts").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
assert "extendTrimSlope(drawnFillPoints(extrasForArea)" in geom
|
||||
assert "extendTrimSlope(drawnFillPoints(basinExtrasForArea)" in geom
|
||||
assert "applied.h == null" in geom
|
||||
|
||||
|
||||
def test_목록이_없으면_종전과_같다() -> None:
|
||||
assert not _tiers(facility_structures([POINT]))
|
||||
assert not _tiers(facility_structures([POINT], {}))
|
||||
|
||||
@@ -225,8 +225,11 @@ def test_다단_성토부선이_면적_트림에_들어간다():
|
||||
)
|
||||
assert "const extendTrimSlope = (" in source, "트림 확장 자리가 사라짐"
|
||||
# 유출측·집수정 계류측 **둘 다** — 한쪽만 넣으면 그쪽 단만 물량에 잡힌다.
|
||||
assert "extendTrimSlope(drawnFillPoints(extras)" in source, "유출측 다단이 빠짐"
|
||||
assert "extendTrimSlope(drawnFillPoints(basinExtras)" in source, "집수정 계류측 다단이 빠짐"
|
||||
# 면적용은 확정 단까지만(`extrasForArea` — 2026-09-14 ㉠ 미확정 단은 성토를 안 깎음).
|
||||
assert "extendTrimSlope(drawnFillPoints(extrasForArea)" in source, "유출측 다단이 빠짐"
|
||||
assert "extendTrimSlope(drawnFillPoints(basinExtrasForArea)" in source, (
|
||||
"집수정 계류측 다단이 빠짐"
|
||||
)
|
||||
# 그리지 않는 `cut` 갈래(벽이 묻힌 자리)까지 넣으면 면적이 거꾸로 부푼다.
|
||||
assert 'segment.kind !== "cut"' in source, "묻힌 구간을 안 걸러냄"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user