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

Function has

test/compute-engine/solve-diophantine.test.ts:664–665  ·  view source on GitHub ↗
(x: number, y: number, z: number)

Source from the content-addressed store, hash-verified

662 const anyFree = r.ops!.some((t) => t.ops!.some((o) => o.symbols.length > 0));
663 expect(anyFree).toBe(false);
664 const has = (x: number, y: number, z: number) =>
665 rows.some((t) => t[0] === x && t[1] === y && t[2] === z);
666 // Known members within the box.
667 expect(has(0, 0, 0)).toBe(true);
668 expect(has(3, 4, 5)).toBe(true);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected