Merge remote-tracking branches 'origin/sub_laptop_5' and 'origin/sub_laptop_6' into main_laptop_1

This commit is contained in:
2026-10-01 16:51:52 +09:00
2 changed files with 4 additions and 1 deletions
@@ -86,7 +86,7 @@
"kind": "input",
"name": "인력",
"color": "#2f80ed",
"unit": "-",
"unit": "원/일",
"x": 40,
"y": 620,
"input": {
+3
View File
@@ -124,6 +124,9 @@ def test_견본_모양(name: str) -> None:
assert len({i["cell"] for i in fn["inputs"]}) == len(fn["inputs"])
if b["kind"] == "output":
assert b["output"]["cost"] in ("노무비", "재료비", "경비", "값")
units = {e["unit"] for e in (b.get("input") or {}).get("elements") or []}
if len(units) == 1: # 요소 단위가 모두 같으면 상자 단위도 그것(공통 단위 규칙)
assert b["unit"] == next(iter(units)), b["id"]
for link in lg["links"]:
a, z = boxes[link["from"]["box"]], boxes[link["to"]["box"]]
assert link["from"]["name"] in _ports_out(a), link