Public repository: timo / feel

Reader

An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.

test(core): ingest multi-word context-literal key case (ADR-17)

public

test(core): ingest multi-word context-literal key case (ADR-17)

The 0057-feel-context fixture predated multi-word name support, so `{foo bar:
"foo"}` (a context literal whose key is a multi-word FEEL name) was skipped. The
slice detector's key-blanking now consumes the whole space-separated run up to
the colon (added with named-argument ingestion), so the case fits and the closed
loop validates the multi-word key.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changeset8ad7192806ae99079c25930e2c56a80a471afb00
Author (claimed)Timo Stolz <timo.stolz@gmail.com>,
Parentsf11e8222db6f
Children
Pushlog
by timo via ssh

modified crates/feel-core/tests/fixtures/0057-feel-context.json +10 −0

@@ -21,6 +21,16 @@
2121
           "e": "baz"
2222
         }
2323
       }
24
+    },
25
+    "expected_type": "context",
26
+    "comparison": "exact",
27
+    "deviation": null
28
+  },
29
+  {
30
+    "id": "0057-feel-context:004:decision004",
31
+    "expression": "{foo bar: \"foo\"}",
32
+    "expected": {
33
+      "foo bar": "foo"
2434
     },
2535
     "expected_type": "context",
2636
     "comparison": "exact",