fix(855-E 2-E4): Doc_Copy 문서 고르기가 M01 로직 줄을 안 읽음 · 문서 지문 수 꼴(4 · 4.0) 안 가림
- doc_of: 실어 온 사본 문서 › 값 사본 색인이 든 그 키 줄(옛 저장본 · `_held`) › M01 수식 문서 › M01 문서 없는 키 = 색인 줄 변환 — M01 키마다 `whole.logic` 을 읽던 것(sub4 표 L2 ⓑ-3 「Doc_Copy.doc_of · given_of 읽힘 18,002」) 걷음 - doc_fp: 정수 값 실수 = 정수(저장본 부름 문서 4 · M01 문서 4.0 이 다른 지문 → 서고 같은 내용 · M01 새판 거짓 판정) · 저장본 `원본.판`(13 파일) = 옛 지문도 받음(same_origin) - test_703 「자료집 같은 이름 물음」 빨강(같은 내용 지문) = 이 고침으로 통과 · 713_1 · 804_7 = 받은 M01 쪽 고침으로 이미 통과 - test_795_2: 값 사본에 로직 줄이 없는 꼴(855-F B9-6) — 로직 몫 확인 = 수식 부름 문서 - 검증: 관련 40 파일 + 지킴 + 관문 360 통과 · 빌더 --check 같음 · typecheck 0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -83,7 +83,7 @@ def test_copy_stamped_logic_change_kept(world, monkeypatch):
|
||||
sc = _sc(me, [{"로직": PCT, "수량": {"손": 1}}])
|
||||
doc = _labor(me, [{"로직": PCT, "수량": {"손": 2}}])
|
||||
for got in (doc, _read(me, "precombo", sc)):
|
||||
assert PCT in {r["키"] for r in skc.held(got)["로직"]}
|
||||
assert PCT in got["수식"]["부름"] # 로직 몫 = 수식 부름 문서(값 사본 로직 줄 없음 · 855-E 2-E4)
|
||||
assert LB in {r["키"] for r in skc.held(got)["단가"]}
|
||||
was = (_calc(me, COL)["반영합"]["계"], _calc(me, sc)["기준합"]["계"], _unit(me, sc))
|
||||
assert _calc(me, COL)["사본"]["M01새판"] is False
|
||||
@@ -115,7 +115,7 @@ def test_layer_and_column_copy_keep_copy(world, monkeypatch):
|
||||
co, me = world["company"], world["personal"]
|
||||
src = _sc(co, [{"로직": PCT, "수량": {"손": 1}, "패치": COVER}])
|
||||
first = skc.held(_read(co, "precombo", src))
|
||||
old = skc.held(_labor(me, [{"로직": PCT, "수량": {"손": 2}}])) # 받는 열 = 옛 M01 사본
|
||||
old_doc = _labor(me, [{"로직": PCT, "수량": {"손": 2}}]) # 받는 열 = 옛 M01 사본
|
||||
_fake(monkeypatch, [_double(LB), _changed(_live().logic(PCT))])
|
||||
ref = {"층": "company", "주인": "7", "키": src}
|
||||
with store.at(me):
|
||||
@@ -125,8 +125,9 @@ def test_layer_and_column_copy_keep_copy(world, monkeypatch):
|
||||
mine = skc.held(_read(me, "precombo", got["이름"]))
|
||||
assert (mine["판"], mine["단가판"]) == (first["판"], first["단가판"])
|
||||
_write(me, "labor", "sub2임시2", {"열": "sub2임시2", "담은로직": [{"로직": PCT}], "자재": []})
|
||||
other = skc.held(_read(me, "labor", "sub2임시2")) # 원본 열 = 바뀐 M01 사본
|
||||
assert other["판"] != old["판"]
|
||||
other_doc = _read(me, "labor", "sub2임시2") # 원본 열 = 바뀐 M01 사본
|
||||
other = skc.held(other_doc)
|
||||
assert other_doc["수식"]["부름"][PCT] != old_doc["수식"]["부름"][PCT] # 바뀐 M01 문서
|
||||
with store.at(me): # 열 복사(copy_from) = 받은 사본 먼저
|
||||
store.copy_from("labor", COL, "sub2임시2")
|
||||
assert skc.held(_read(me, "labor", COL))["판"] == other["판"]
|
||||
|
||||
Reference in New Issue
Block a user