Skip to content

test(parser): pin Violent Urge Delirium clause to ParentTarget (#1272)#5348

Merged
matthewevans merged 1 commit into
phase-rs:mainfrom
rykerwilliams:test/violent-urge-delirium-scope-coverage
Jul 8, 2026
Merged

test(parser): pin Violent Urge Delirium clause to ParentTarget (#1272)#5348
matthewevans merged 1 commit into
phase-rs:mainfrom
rykerwilliams:test/violent-urge-delirium-scope-coverage

Conversation

@rykerwilliams

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • New test violent_urge_delirium_scopes_to_parent_target_not_all_creatures passes locally.
  • Test-only change, no production code touched.

🤖 Generated with Claude Code

…-rs#1272)

Investigated phase-rs#1272's "double strike grants to all creatures" report:
already fixed generically by phase-rs#2999 (ParentTarget GenericEffect binding
for targeted pump/debuff abilities, originally for Mu Yanling phase-rs#2922).
Verified locally by parsing the real Oracle text and asserting the
Delirium clause's static ability is scoped to ParentTarget, not an
unscoped filter. Adds permanent regression coverage since neither
card ever got a follow-up test after phase-rs#2999 landed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@matthewevans matthewevans self-assigned this Jul 8, 2026

@matthewevans matthewevans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed test-only parser coverage. Oracle text matches Scryfall, the assertion reaches the parser-produced GenericEffect/static grant shape, and the existing neighboring Delirium condition test covers the same card condition. Local diff is limited to oracle_tests.rs; no blocking review comments found.

@matthewevans matthewevans added test Add tests quality For high-quality minimal to no-churn PRs labels Jul 8, 2026
@matthewevans matthewevans enabled auto-merge July 8, 2026 00:23
@matthewevans matthewevans removed their assignment Jul 8, 2026
@matthewevans matthewevans added this pull request to the merge queue Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Parse changes introduced by this PR

Baseline pending for 8441d04739668240fa9576b4402e3a41d9c64804 — this populates once main publishes its coverage snapshot (a few minutes after that commit landed).

Merged via the queue into phase-rs:main with commit 52725ed Jul 8, 2026
13 checks passed
rykerwilliams added a commit to rykerwilliams/phase that referenced this pull request Jul 8, 2026
Audited all four "already fixed" GitHub comments posted tonight,
found real gaps where claims rested on a sub-agent's deleted scratch
test rather than executed local verification, and fixed each one with
a real permanent test (phase-rs#5348, phase-rs#5350, phase-rs#5351) plus updated comments.
Logged as standing lesson 11 so this doesn't need re-litigating.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

quality For high-quality minimal to no-churn PRs test Add tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants