Skip to content

Groovy: handle comma as an assert separator#7532

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-groovy-assert-comma-msg
Apr 30, 2026
Merged

Groovy: handle comma as an assert separator#7532
greg-at-moderne merged 1 commit intomainfrom
greg-groovy-assert-comma-msg

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Apr 30, 2026

What's changed?

Add support for alternative syntax of the assert statements in Groovy. They can be followed by a comma (instead of a colon), e.g.

assert x == 2, "value is ${x}"

What's your motivation?

Without the fix, it fails with an exception.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 30, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review April 30, 2026 14:23
@greg-at-moderne greg-at-moderne merged commit 2a3c45c into main Apr 30, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-groovy-assert-comma-msg branch April 30, 2026 14:24
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant