From cca0e09cd216d7ebd7d977512130967616a32672 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Fri, 2 Oct 2026 00:33:38 +0900 Subject: [PATCH] =?UTF-8?q?test(M02-=ED=9D=90=EB=A6=84=EB=8F=84):=20?= =?UTF-8?q?=EC=8B=9D=20=EB=B3=B4=EA=B8=B0=20=EA=B0=92=20=EC=A4=84=EC=9D=80?= =?UTF-8?q?=20=EC=84=A0=20=EA=B7=9C=EC=B9=99=EC=9D=84=20=EC=A7=80=EB=82=98?= =?UTF-8?q?=20=EB=93=A4=EC=96=B4=EC=98=A8=20=EA=B0=92=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EA=B7=B8=EB=A6=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01D2nUMUMTsqm93PbQtipo6c --- resources/tester/test_m02_df_formula_view.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/resources/tester/test_m02_df_formula_view.py b/resources/tester/test_m02_df_formula_view.py index d015c2a9e..be3d768f0 100644 --- a/resources/tester/test_m02_df_formula_view.py +++ b/resources/tester/test_m02_df_formula_view.py @@ -178,3 +178,18 @@ def test_조건_만들기_식과_다시_줄(): def test_못_바꾸는_식은_null(formula): (back,) = run([{"op": "toDraft", "formula": formula}]) assert back is None + + +def test_받는_칸은_선_규칙을_지난_값으로_그림(): + # 시트에 남은 옛 값(99)이 아니라 규칙을 지나 들어온 값(arrived 0.15)으로 값 식을 그림 + box = func_box( + {"B1": {"값": 99}, "B3": {"식": "B1*(1+B2/100)"}}, + [{"port": "석공량", "cell": "B1"}], + [var("높이", "B2", 4)], + "B3", + "석공 인", + ) + (got,) = run([{"op": "lines", "box": box, "arrived": {"석공량": 0.15}}]) + assert got["lines"][0]["valued"] == "0.15 × (1 + 4 ÷ 100) = 0.156" + (stale,) = run([{"op": "lines", "box": box, "arrived": {}}]) + assert stale["lines"][0]["valued"].startswith("99 ×") # 들어온 값이 없을 때만 칸 값