Merge remote-tracking branch 'origin/sub_laptop_8' into main_laptop_1

This commit is contained in:
2026-10-27 20:47:48 +09:00
2 changed files with 12 additions and 2 deletions
@@ -168,3 +168,13 @@ def test_edge_flag():
row = _row(_case(1.3, ends=ends))
assert row["cases"]["wet"]["right"]["edge"] is edge
assert view.summarize([_row(_case(1.3, ends=[-30.5, 40.0]))], ["wet"])["wet"]["edge"] == 1
def test_section_view_critical_is_governing_surface():
# 단면 화면 임계면 = 판정 면(방법 이름도) — 후보 고리가 방법 이름을 덮지 않음
case = _case(1.3, 1.0, 1.05)
out = {"cases": [case]}
row = _row(case)
model = {"materials": [], "regions": [], "surface": []}
a = view.section_view(row, out, model, {})["analyses"][0]
assert (a["critical"]["method"], a["critical"]["fs"]) == ("spencer", 1.0)