refactor(855-E 2-E4): 단가산출 옛 칸 수식고침 · 연결 끊기 = 받으면 400 — 엔진 수식 고침 얹기 걷음

- 저장본 확인: 층 SK 14 · 문서 `수식고침` · 더한줄 `끊음` · `수식고침` 0
- M02_Sangeun_Equation: `apply` · `on`(M01 Equation edit_row 엔진 고침) · `strict` · `added_inputs` · 메모 지움 →
  `clean` = 옛 칸 있으면 400(WHY)
- M02_Sangeun_Block: `own` · `row_of`(끊은 기초 `mine.logic`) · `strict` · `is_block` 지움 → `clean` = 끊음 · 수식고침 400
- M02_Sangeun_Calc.clean_doc: eqm · blk strict 부름 걷음(바탕 머리 = `_head_of`) · M02_Sangeun_Doc: 고침 더한 입력 거름 걷음
- 시험 test_796_2b: 옛 칸 고침 = 「수식고침」 400 · 화면 TS 파일 글자 보는 시험 걷음(소스 글자 시험 금지)
- 검증: 관련 43 파일 + 지킴 + 관문 356 통과 · 빌더 --check 같음 · typecheck 0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 10:45:20 +09:00
co-authored by Claude Opus 5.5
parent 35d3242711
commit 2e7bb92044
5 changed files with 20 additions and 184 deletions
+1 -13
View File
@@ -42,17 +42,5 @@ def test_imported_old_equation_edit_refused(world):
doc = _doc(me, key)
assert "로직" not in doc["가져온"] and doc["가져온"]["문서"]["금액"]
edit = [{"할일": "식", "자리": "호표:0", "식": "0.5 × 2"}]
with pytest.raises(Exception, match="수식 고침 못 얹음"):
with pytest.raises(Exception, match="수식고침"): # 옛 칸 = 받지 않음(855-E 2-E4)
_save(me, key, {**doc, eqm.KEY: edit})
def test_screen_same_part_first_tab():
"""화면 — M02 수식 = 공용 수식 문서 화면(802-4b-2 · 옛 수식 나무 화면 걷음) · 첫 탭 · 옛 탭 걷음(799-2)."""
import re
from pathlib import Path
root = Path(__file__).resolve().parents[2] / "M02_MasterTemplete"
assert not (root / "M02_MasterTemplete_Sangeun_Equation.ts").exists()
tabs = (root / "M02_MasterTemplete_Sangeun_Tabs.ts").read_text(encoding="utf-8")
# 799-2 · 836-3 — 시트 · 인력·재료·경비 · 시험 계산 · 텍스트 수식 · 보기 고르기(단가산출 상세 탭) 걷음
assert not re.findall(r'\{ value: "(\w+)", label: ', tabs) and "createSegment" not in tabs