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

Function bn

test/compute-engine/number-theory.test.ts:484–484  ·  view source on GitHub ↗
(e: any[])

Source from the content-addressed store, hash-verified

482 test('false for non-powers and small values', () => {
483 expect(evalStr(['IsPerfectPower', 12])).toEqual('"False"');
484 expect(evalStr(['IsPerfectPower', 2])).toEqual('"False"');
485 expect(evalStr(['IsPerfectPower', 1])).toEqual('"False"');
486 });
487 test('negative inputs require an odd exponent', () => {

Callers 1

Calls 3

toStringMethod · 0.65
evaluateMethod · 0.65
boxMethod · 0.65

Tested by

no test coverage detected