EV-60 review: test_ev60 row T4-owed (the gate is for cut tries only)
A pending change whose 0 A already stands begins with no write under a cap with cut_fails 3, as base. Kills the review mutant that gates _begin_solar also when nothing is owed (it survived every other row). Test-only. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,8 @@ file whose label starts with the id:
|
||||
T1-T11 (T11a-c), T12 (EV-54 `_put` as base, against `Base60`), T13 (the
|
||||
Manual source pin, same check as N7), T14, T15 (Solar's non-cut refused close,
|
||||
independent of test_ev56's golden), T16-T22 (T22 has its own check), T24,
|
||||
S-a/S-b, the stale-flag row "T25-flag", and N1-N14 (N4, N6, N11, N12, N13 are
|
||||
S-a/S-b, the stale-flag row "T25-flag", the review row "T4-owed" (the gate
|
||||
is for cut tries only), and N1-N14 (N4, N6, N11, N12, N13 are
|
||||
generic checks over every run or source checks).
|
||||
Also carried by other suites, named by check id (all run by CI): T12:
|
||||
test_ev54 and test_ev54_drop; T13: test_ev59 "T1", "T2", "T24a"; T15:
|
||||
@@ -1029,6 +1030,29 @@ check(f"T25-flag: with a stale flag set before a normal change (the close is "
|
||||
and r.w.seq is None and r.w._cap_end is False
|
||||
and r.drv.calls[-1][1] == 6.0)
|
||||
|
||||
|
||||
# T4-owed (review): the gate is for cut tries only. The change's 0 A already
|
||||
# stands (taken), so `_begin_solar` writes nothing: with cut_fails 3 and a
|
||||
# 6 A cap the change still begins at once (seq set, no current write, the
|
||||
# select next), as base. A gate that ignores "nothing to write" is red here.
|
||||
def owed_setup(w, d):
|
||||
w.cut_key, w.cut_fails, w.cut_fail_at = 0, 3, 10.0
|
||||
set_cap(w, 6.0)
|
||||
w.plan._set(6.0, 0.0, 3)
|
||||
|
||||
|
||||
r = world("R", 60, start=20, cur=0.0, setup=owed_setup)
|
||||
b = world("R", 60, start=20, cur=0.0, setup=owed_setup, cls=Base60)
|
||||
check(f"T4-owed: the 0 A already stands, cut_fails 3, a 6 A cap: the change "
|
||||
f"begins at 20 with no current write (seq {r.snap[20]['seq']}, calls "
|
||||
f"{[c for c in r.drv.calls if c[0] <= 21]}), the select at 21 as base "
|
||||
f"({r.drv.phases_log[:1]} vs {b.drv.phases_log[:1]}), cut_fails 3",
|
||||
r.snap[20]["seq"] == ("zero", 0)
|
||||
and not [c for c in r.drv.calls if c[0] <= 21]
|
||||
and r.drv.phases_log[:1] == b.drv.phases_log[:1]
|
||||
and len(r.drv.phases_log) == 1 and r.w.cut_fails == 3
|
||||
and not r.w.gave_up)
|
||||
|
||||
# =========================================================================== #
|
||||
print("\n6. THE NEVERS OVER EVERY RUN, SOURCE CHECKS (N1-N14, T13, T23)")
|
||||
# =========================================================================== #
|
||||
|
||||
Reference in New Issue
Block a user