mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
Update fastPowering.test.js
This commit is contained in:
parent
2c221989b1
commit
310343e0e1
@ -19,8 +19,8 @@ describe('fastPowering', () => {
|
|||||||
expect(fastPowering(16, 16)).toBe(18446744073709552000);
|
expect(fastPowering(16, 16)).toBe(18446744073709552000);
|
||||||
expect(fastPowering(7, 21)).toBe(558545864083284000);
|
expect(fastPowering(7, 21)).toBe(558545864083284000);
|
||||||
expect(fastPowering(100, 9)).toBe(1000000000000000000);
|
expect(fastPowering(100, 9)).toBe(1000000000000000000);
|
||||||
expect(fastPowering(5, -5)).toBe(-0.0003200000000000002);
|
expect(fastPowering(5, -5)).toBe(0.0003200000000000002);
|
||||||
expect(fastPowering(-5, 5)).toBe(-3125);
|
expect(fastPowering(-5, 5)).toBe(-3125);
|
||||||
expect(fastPowering(-5, -5)).toBe(0.0003200000000000002);
|
expect(fastPowering(-5, -5)).toBe(-0.0003200000000000002);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user