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

Function expectClose

test/compute-engine/solve-domain.test.ts:334–338  ·  view source on GitHub ↗

Assert two ascending numeric lists agree within a small tolerance (CE's * exact π-multiples numericize to the last ULP, not bit-identically to a * JS `k*Math.PI/n`).

(actual: number[], expected: number[])

Source from the content-addressed store, hash-verified

332 ['Equal', ['Add', 'x', 'y'], 5],
333 ['Element', 'x', ['Range', 1, 200]],
334 ['Element', 'y', ['Range', 1, 200]],
335 ])
336 .evaluate()
337 )
338 ).toThrow();
339 });
340});
341

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected