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

Function check

test/compute-engine/ascii-math.test.ts:6–9  ·  view source on GitHub ↗
(s: string | Expression)

Source from the content-addressed store, hash-verified

4const ce = engine;
5
6function check(s: string | Expression): string {
7 if (typeof s === 'string') return ce.parse(s).toString();
8 return ce.expr(s).toString();
9}
10
11// Check serialization of ASCII math using toString()
12describe('NUMBERS', () => {

Callers 1

ascii-math.test.tsFile · 0.70

Calls 3

toStringMethod · 0.65
parseMethod · 0.65
exprMethod · 0.65

Tested by

no test coverage detected