diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-30 09:09:02 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-30 09:09:02 -0500 |
| commit | 204bc6091b76c30e68a14cd2c3b948179b27c602 (patch) | |
| tree | 3fd7ae3bfc698a54c731ec6f512dc61f53066380 /scripts/theme-studio/distinguished.json | |
| parent | ecf3d7952fa53f9f4fd57697526c7cce0c88f283 (diff) | |
| download | dotemacs-204bc6091b76c30e68a14cd2c3b948179b27c602.tar.gz dotemacs-204bc6091b76c30e68a14cd2c3b948179b27c602.zip | |
fix(test): anchor monthly tests on a day every month has
- The tests anchored on tomorrow, whose day varies by run date.
- A series on the 31st correctly skips months without one.
- That gave seven occurrences against an assertion of ten.
- The suite went red on the 30th and aborted the run.
A relative offset is not a date-independent anchor, which is what the file
header claimed it was. I added a helper that walks forward to the first day
at or below the 28th, and pointed the three cadence tests at it.
One assertion was also too weak to notice. It checked that each occurrence
fell on or before the anchor day, which a skipped month satisfies without
ever landing on the right day. It now checks equality.
Verified across 400 simulated run dates: no anchor past the 28th and no
count outside the expected band. The old anchor fails nine of those days.
Diffstat (limited to 'scripts/theme-studio/distinguished.json')
0 files changed, 0 insertions, 0 deletions
