EV-71: review fixes (T24 label, whitespace, N10)
checks / unit (pull_request) Successful in 54m59s
infra-pin / fresh (pull_request) Successful in 2s

- test_ev69.py T24: label text restored; only the R1 flip and its comment.
- test_ev69_fuzz.py: revert an accidental whitespace change.
- test_ev71.py: drop the N10 check that could not fail (T17 ii carries N10).

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-12-05 02:47:37 +01:00
parent 0eb332d93f
commit 1886a9f1ba
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ 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 kept), the "
check(f"T24: cap end with a press inside the sequence (prior_a cleared), 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]})",
+1 -1
View File
@@ -240,7 +240,7 @@ def fuzz_mixed(kind, seed):
a for tt, a in new if a > 0]
s["armed"] = True
s["end_t"] = t
s["cap"] =kind == "solar" and w.cut_fails >= CM.MAX_TRIES
s["cap"] = kind == "solar" and w.cut_fails >= CM.MAX_TRIES
s["cap_counted"] = False
bump("end")
if s["cap"]:
+2 -4
View File
@@ -599,10 +599,8 @@ for tag, r in (("C9", world()), ("F1a", world("f1a", press_at=None)),
stray = [(t, v) for t in r.own for v in r.own[t] if v not in seen]
check(f"N4 {tag}: every own value is one the writer wrote or had "
f"({stray[:2]})", not stray)
# N10: the kept value is never persisted (T17 ii names the modules); it is no
# key of the writer's own state dicts either.
check("N10: the kept value is not part of the carry list or the log",
all(not hasattr(CM, n) for n in ("KEY_KEPT", "KEY_OWN_KEPT")))
# N10 (the kept value is never persisted) is asserted by T17 (ii): no other
# module reads or writes `._kept` (red under M11), and a new writer starts empty.
# N15: a kept value is never own after a hold (T6 reads it back from 260)
r = world(after=lambda t: 16.0 if t < 260 else 12.0)
check(f"N15: C9, a hold over 16 A (hold {r.first_hold()}), then the old 12 A "