- 사진첩: 「{}」 · 「null」 · 「""」 = 칸 없음 — 빈 맵 쓰기가 걸음이 되어 ↷ 를 버리던 흠(R4) · 「[]」(관 · 구조물 모두 지움)은 값으로 둠
- 세션 맵 · 연동 플래그: 빈 맵 persist = 칸 지움(갈아끼움 이동이 「{}」 여섯 칸을 만들지 않음)
- 종단도: 본문 0 크기(판 접힘)에도 낡음 예약 · 유토 총괄값 · 배분 선반입 · 측점 자료를 셈 · 그리기만 건너뜀 — 떼어 낸 유토 판은 그림
- 배지: 소수 한 자리 고정(−17,570.0㎥)
- 시험: test_272_history_empty_cells · test_272_hidden_summary(옛 코드 7 실패)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
56 lines
2.0 KiB
Python
56 lines
2.0 KiB
Python
"""272 · 468 (C2) 종단 판 접힘(본문 0 크기) 파생값 · (C3) 배지 자릿수.
|
|
|
|
R3 — 판 접은 채 교점 ↓ → 배지 옛 값 그대로 → 이제 접힘 동안도 낡음 예약 · 유토 총괄값 · 배분 선반입 · 측점 자료를 셈 ·
|
|
그리기(본문 갈아 끼움 · 크기 기록)만 건너뜀 · 펼친 그림과 같은 값. 배지 = 소수 한 자리 고정.
|
|
짝: `helper_272_value_hold.mjs` · 묶음 짓기 = `test_272_history_empty_cells.run_helper`.
|
|
|
|
./venv/Scripts/python.exe -m pytest resources/tester/test_272_hidden_summary.py -q
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
from test_272_history_empty_cells import pytestmark, run_helper # noqa: E402, F401
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def out(tmp_path_factory):
|
|
return run_helper(tmp_path_factory)
|
|
|
|
|
|
def test_숨은_본문도_낡음_예약은_펼침과_같은_열쇠(out):
|
|
assert out["shown"]["error"] is None
|
|
assert out["shown"]["stale"] == [out["expectedStale"]]
|
|
assert out["hidden"]["stale"] == out["shown"]["stale"]
|
|
|
|
|
|
def test_숨은_본문도_유토곡선_입력은_펼침과_같음(out):
|
|
hidden, shown = out["hidden"], out["shown"]
|
|
assert hidden["massCount"] == shown["massCount"] == 1
|
|
assert hidden["mass"] == shown["mass"]
|
|
assert hidden["mass"]["staleChainages"] == [60]
|
|
|
|
|
|
def test_숨은_본문은_그리기만_건너뜀(out):
|
|
assert out["hidden"]["painted"] == 0 and out["hidden"]["sized"] == 0
|
|
assert out["shown"]["painted"] == 1
|
|
|
|
|
|
def test_유토_판_접힘_펼침_모두_총괄값과_배분_선반입(out):
|
|
final = out["finalM3"]
|
|
assert final is not None
|
|
for state in ("closed", "open"):
|
|
panel = out["panel"][state]
|
|
assert panel["error"] is None, panel["error"]
|
|
assert panel["summary"] == [final], state
|
|
assert panel["scheduled"] == 1, state
|
|
|
|
|
|
def test_배지는_소수_한_자리(out):
|
|
assert out["badge"] == ["-17,570.0㎥", "-17,570.7㎥", "1,234.6㎥", "0.0㎥"]
|