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 "