From ba6604464ee86c4772cf9a48e9177ef886332eb4 Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Sat, 24 Oct 2026 06:17:58 +0800 Subject: [PATCH] =?UTF-8?q?test(=E8=BF=AD=E4=BB=A335=E5=8D=A1=E2=91=A0):?= =?UTF-8?q?=20=E8=A1=A5=E6=88=98=E6=96=97=E4=BF=9D=E5=BA=95=E5=88=A4?= =?UTF-8?q?=E6=8D=AE=E4=B8=93=E6=B5=8B=E5=A4=B9=E5=85=B7=EF=BC=88=E4=BD=8E?= =?UTF-8?q?=E4=BA=8E=E4=BF=9D=E5=BA=95=E5=BF=85=E6=8B=92=EF=BC=8B=E4=BF=9D?= =?UTF-8?q?=E5=BA=95=201=20=E4=B8=8B=E4=B8=8D=E8=AF=AF=E4=BC=A4=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=20fv7=20=E6=9C=89=E5=8F=AF=E7=BA=A2=E5=88=A4?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/tests/unit/core/node_map_generator_test.gd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/game/tests/unit/core/node_map_generator_test.gd b/game/tests/unit/core/node_map_generator_test.gd index b2f77981..343984d8 100644 --- a/game/tests/unit/core/node_map_generator_test.gd +++ b/game/tests/unit/core/node_map_generator_test.gd @@ -334,7 +334,16 @@ func _test_negative_fixtures() -> void: {"id": 0, "type": "mine", "depth": 0, "next": [1]}, {"id": 1, "type": "boss", "depth": 1, "next": []}]) Kit.check("类型出域夹具报 enum〔fv1〕", _has_cat(_gen.validate_output(badty), "enum")) - # 非 Boss 终点(断头链末不是 boss)——判据消息专一断言(防「别的检查顺带兜住」的假拦截) + # 战斗保底判据专测:形状合法但战斗节点数低于保底的夹具必须被自证拒收 + var thin_battle := _fx([ + {"id": 0, "type": "battle", "depth": 0, "next": [1]}, + {"id": 1, "type": "reward", "depth": 1, "next": [2]}, + {"id": 2, "type": "shop", "depth": 2, "next": [3]}, + {"id": 3, "type": "boss", "depth": 3, "next": []}]) + Kit.check("战斗节点低于 battle_floor 的合法形状夹具命中「低于保底」判据〔fv7〕", + _has_msg(_gen.validate_output(thin_battle, {"battle_floor": 4}), "低于保底")) + Kit.check("同夹具在保底 1 下自证零错误(判据不误伤)〔fv7〕", + _gen.validate_output(thin_battle, {"battle_floor": 1}).is_empty()) var noBoss := _fx([ {"id": 0, "type": "battle", "depth": 0, "next": [1]}, {"id": 1, "type": "battle", "depth": 1, "next": []}])