EV-71: Solar and Manual keep their own untaken non-zero write as their own
A press that lifts nothing no longer clears attempted_a, prior_a, the EV-69 carry or the new kept value; a held read no longer adopts (no taken, carry untouched, the owed 0 A is written); a refused 0 A no longer loses the untaken non-zero value. The kept value ends at a fresh own take, a different non-zero write, a lifting press, a hold or Solar's charger return. Existing tests edited only as the brief allows: test_ev69.py T12 (press alone) and T24 setup, test_ev69_fuzz.py N4, N1b user cause, I1, I2. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -271,15 +271,18 @@ check(f"T12: S1-nt, a press at 145 (no hold: the carry ends), 12 A at 150: "
|
||||
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.
|
||||
# press alone is graded on the state.
|
||||
# EV-71 P1: a press that lifts nothing ends nothing. This press lifts no count
|
||||
# and no hold, so the carry stands (it was: gone with the press).
|
||||
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))
|
||||
check(f"T12 (press alone): S1-nt, a press at 145 that lifts nothing, no fresh "
|
||||
f"read and no write until 150: the carry stands "
|
||||
f"({r.carry[144]}, {r.carry[145]}), 12 A is an own value "
|
||||
f"({r.own[149]})",
|
||||
r.carry[144] != [] and all(r.carry[t] == r.carry[144]
|
||||
for t in range(145, 150))
|
||||
and 12.0 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 "
|
||||
@@ -435,12 +438,13 @@ check(f"T19 [red on base]: mismatch at 900 ({rb.first_ms(895)})",
|
||||
r = ce(500, press_after_close2=True)
|
||||
E = close_times(r)[1] + 5
|
||||
r = ce(500, press_after_close2=True, ev=[(E + 3, show(0.0))])
|
||||
check(f"T24: cap end with a press inside the sequence (prior_a cleared), the "
|
||||
check(f"T24: cap end with a press inside the sequence (prior_a kept), the "
|
||||
f"charger then shows its own 0 A: no mismatch_since, no hold "
|
||||
f"({r.first_ms(E)}, {r.first_hold()}); the carry holds the 0 A "
|
||||
f"({r.carry[E + 4]})",
|
||||
r.ended == E and r.clean(E, 500) and 0.0 in r.carry[E + 4]
|
||||
and r.prior[E - 1] is None)
|
||||
# EV-71 P1: a press that lifts nothing ends nothing
|
||||
and r.prior[E - 1] is not None)
|
||||
|
||||
|
||||
# T25 (formal Dev note 2): no carry when the end's own value is taken
|
||||
|
||||
Reference in New Issue
Block a user