Skip to content

fix: add regression tests for issue #133 (wordlike operator after method call)#398

Draft
toddr-bot wants to merge 1 commit into
masterfrom
koan.toddr.bot/fix-issue-133
Draft

fix: add regression tests for issue #133 (wordlike operator after method call)#398
toddr-bot wants to merge 1 commit into
masterfrom
koan.toddr.bot/fix-issue-133

Conversation

@toddr-bot

@toddr-bot toddr-bot commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

The bug reported in #133 (wordlike operators like x and cmp being parsed as Word instead of Operator after method calls without parentheses) was already fixed in the codebase. This PR adds explicit regression tests for the specific examples from the issue report to prevent future regressions and formally close the issue.

Fixes #133

Changes

  • Added test: $a->dat x 2; — method call on variable without parens, x correctly parsed as Operator
  • Added test: $a->dat() x 2; — method call with parens (contrast case)
  • Added test: map { LD_H x 3 } @list — bareword followed by x inside map block
  • Updated test plan count (3073 → 3082)

Test plan

  • All 3082 tests in t/ppi_token_operator.t pass
  • Full test suite (69 files, 53090 tests) passes with no regressions

Generated by Kōan /fix


Quality Report

Changes: 1 file changed, 54 insertions(+), 1 deletion(-)

Code scan: clean

Tests: skipped

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

…(GH #133)

The underlying bug (wordlike operators like x and cmp being parsed as
Word instead of Operator after method calls without parens) was already
fixed. Add explicit regression tests for the specific examples from the
issue report to prevent future regressions:

- $a->dat x 2 (method call on variable without parens)
- $a->dat() x 2 (method call with parens, for contrast)
- map { LD_H x 3 } @list (bareword x inside map block)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

wordlike operator parsed as Word after method call with no parens

1 participant