MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / fnEngine

Function fnEngine

test/compute-engine/expression-properties.test.ts:427–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425
426 it('structural Function literal: still excludes its parameters', () => {
427 const f = engine.box(['Function', ['Add', 'x', 'b'], 'x'], {
428 structural: true,
429 });
430 expect(f.freeVariables).toEqual(['b']);
431 });
432
433 it('a node with no definition falls back to the spelling heuristic', () => {
434 // `canonical: false` leaves the node unbound (no operator definition), so
435 // there are no binding sites to consult: only the canonical
436 // `Limits`/`Element` spellings are recognized, and `Tuple` is not.

Callers 1

Calls 1

declareMethod · 0.95

Tested by

no test coverage detected