From 9b09158ef8c7236d1cd2eece0372ba5cc26f77f0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Dec 2026 23:58:09 +0100 Subject: [PATCH] EV-69: T12 row for a press alone ending the carry Co-Authored-By: Claude --- goodwe_controller/test_ev69.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/goodwe_controller/test_ev69.py b/goodwe_controller/test_ev69.py index 7052ab1..4d64abd 100644 --- a/goodwe_controller/test_ev69.py +++ b/goodwe_controller/test_ev69.py @@ -269,6 +269,17 @@ check(f"T12: S1-nt, a press at 145 (no hold: the carry ends), 12 A at 150: " and n_other() == 1 and not [x for x in r.calls_from(145) if x[1] >= 12.0]) nev("T12", r) +# The press's own retry write ends the carry too, so the row above cannot see +# the press end it. Here no step after the press is fresh (no write): the +# press alone ends the carry. Nothing is own after it (no judging, the EV-22 +# start-state blind spot), so the row grades the state: the carry is gone. +r = s1(400, show_at=None, ev=[(145, press), (146, show(12.0))], + stale=lambda t: 145 <= t <= 149) +check(f"T12 (press alone): S1-nt, a press at 145, no fresh read and no write " + f"until 150: the carry ended with the press ({r.carry[144]}, " + f"{r.carry[145]}), 12 A is no own value ({r.own[149]})", + r.carry[144] != [] and all(r.carry[t] == [] for t in range(145, 150)) + and 12.0 not in r.own[149] and not r.calls_from(145, 149)) r = s1(400, show_at=None, ev=[(145, show(16.0)), (200, show(12.0))]) check(f"T13: S1-nt, foreign 16 A at 145 (hold at 175), the writer then sets " f"12 A at 200: the hold stands 175-400 (no lift by match on an old "