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

Function evalStr

test/compute-engine/latex-syntax/congruence.test.ts:29–34  ·  view source on GitHub ↗
(ce: ComputeEngine, s: string)

Source from the content-addressed store, hash-verified

27}
28
29function evalStr(ce: ComputeEngine, s: string): string {
30 // Prefer `.symbol` so boolean results read as `True`/`False` (the boxed
31 // boolean symbol's `toString()` is the quoted string `"True"`).
32 const r = ce.parse(s).evaluate();
33 return r.symbol ?? r.toString();
34}
35
36describe('MathNet Tier-3 Task 4: Unicode operator glyphs', () => {
37 test('≡ (U+2261) parses as identity / congruence', () => {

Callers 1

congruence.test.tsFile · 0.70

Calls 3

evaluateMethod · 0.65
parseMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected