diff --git a/resources/tester/test_794_2b_edition.py b/resources/tester/test_794_2b_edition.py index d2c06acac..e9a07fc2f 100644 --- a/resources/tester/test_794_2b_edition.py +++ b/resources/tester/test_794_2b_edition.py @@ -127,3 +127,26 @@ def test_뒤채움_두_파일_판_차이_강함(): lab for c in chk.strong({"8": a}, [{"28": b}])["8"]["근거후보"] for lab, _ in c["까닭"] ] assert "판 차이 강함('25 보완 · 파일 2024)" in marks + + +def test_listing_다른_HP_대조(monkeypatch): + mine = { + "1": { + "근거후보": [ + {"기초": "GC1", "판": "'25 보완 · 파일 2024", "까닭": [["그 밖", "보통인부 ×1.98"]]} + ] + } + } + other = { + "9": { + "근거후보": [ + {"기초": "GC1", "판": "'25 보완 · 파일 2025", "까닭": [["그 밖", "보통인부 ×1.98"]]} + ] + } + } + got = {"HP-000001": mine, "HP-000002": other, "HP-000003": None} + monkeypatch.setattr(store, "solved", lambda folder, key: got[key]) + monkeypatch.setattr(store.hopyo_store, "rows", lambda folder: [{"키": k} for k in got]) + out = store.listing("x", "HP-000001") + assert out["블록"]["1"]["근거후보"][0]["까닭"][0][0] == "판 차이 강함('25 보완 · 파일 2024)" + assert store.block("x", "HP-000001", 1)["근거후보"][0]["까닭"][0][0].startswith("판 차이 강함")