From 15a02d520be5ab1757c10a4b6e49721cfe613370 Mon Sep 17 00:00:00 2001 From: zlt Date: Thu, 10 Sep 2026 09:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=96=AD=E8=A8=80=E6=8C=89?= =?UTF-8?q?=E5=8E=9F=E5=AE=9E=E7=8E=B0=E7=9A=84=E8=BE=B9=E7=95=8C=E6=94=B9?= =?UTF-8?q?=E6=AD=A3=EF=BC=9A=E8=A6=81=E9=9B=B6=E6=9D=A1=E6=97=B6=E4=B9=9F?= =?UTF-8?q?=E5=85=88=E7=BB=99=E4=B8=80=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_plan_snapshot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_plan_snapshot.py b/test_plan_snapshot.py index b7ed3e4..591199f 100644 --- a/test_plan_snapshot.py +++ b/test_plan_snapshot.py @@ -51,7 +51,9 @@ def test_pick_rules(): [r["code"] for r in plan.pick_rows( [_row("X", None, 1), _row("Y", None, 2), _row("Z", "光伏", 3)], 3, 1)] == ["X", "Z"]) t("要的条数比总行数多就全给", len(plan.pick_rows(rows, 99, 0)) == 5) - t("要零条就给零条", plan.pick_rows(rows, 0, 0) == []) + t("要零条时先给一条(照抄原实现的边界:先放进去再判断够没够,不是我们要它这样)", + len(plan.pick_rows(rows, 0, 0)) == 1) + t("要一条就给一条", [r["code"] for r in plan.pick_rows(rows, 1, 0)] == ["A"]) def test_replay_against_real_snapshot():