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

Function validate

test/compute-engine/patterns.test.ts:1108–1111  ·  view source on GitHub ↗
(pattern: Expression)

Source from the content-addressed store, hash-verified

1106 // Test validatePattern directly with non-canonical patterns
1107 // (canonical forms may reorder operands for commutative operators)
1108 const validate = (pattern: Expression) => {
1109 const boxedPattern = ce.expr(pattern, { form: 'raw' });
1110 validatePattern(boxedPattern);
1111 };
1112
1113 // INVALID: Consecutive multi-element wildcards (no delimiter to separate them)
1114 test('rejects consecutive sequence wildcards', () => {

Callers 1

patterns.test.tsFile · 0.85

Calls 2

validatePatternFunction · 0.90
exprMethod · 0.65

Tested by

no test coverage detected