Skip to content

Restore counter behavior in ToSDrop#133

Merged
ianks merged 2 commits into
mainfrom
restore-tosdrop-counter
May 15, 2026
Merged

Restore counter behavior in ToSDrop#133
ianks merged 2 commits into
mainfrom
restore-tosdrop-counter

Conversation

@ianks
Copy link
Copy Markdown
Contributor

@ianks ianks commented Apr 27, 2026

Commit caf34da (Simplify TestThing to pure drop without call tracking) removed the counter that incremented on each to_s call. The spec YAML was never regenerated to match the new static behavior, so every spec with 'instantiate:ToSDrop:': {foo: N} is off by one — they expect "woot: N+1" but get "woot: N".

Restoring the counter is a smaller, more conservative fix than regenerating the ~27 spec entries that depend on it. Counter-based to_s also has real semantic value: it verifies the filter actually called to_s, not just that the drop arrived in the template context.

The to_s: variant continues to return its static value as before.

@ianks ianks merged commit 24b6be7 into main May 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant