From d77a5caf23a499d29d0075e0929726b49f9d83ef Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Sun, 12 Oct 2025 16:48:51 -0700 Subject: [PATCH] test(parser): add test for pipe with inline function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/parser/parser.test.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/parser/parser.test.ts b/src/parser/parser.test.ts index fa12adf..60d97ea 100644 --- a/src/parser/parser.test.ts +++ b/src/parser/parser.test.ts @@ -599,6 +599,26 @@ describe('pipe expressions', () => { Identifier h `) }) + + test('pipe with inline function', () => { + expect('items | each fn x: x end').toMatchTree(` + PipeExpr + FunctionCallOrIdentifier + Identifier items + operator | + FunctionCall + Identifier each + PositionalArg + FunctionDef + keyword fn + Params + Identifier x + colon : + FunctionCallOrIdentifier + Identifier x + end end + `) + }) }) describe('multiline', () => {