Update fastPowering.test.js

This commit is contained in:
nikikalwar 2021-06-18 14:52:15 +05:30 committed by GitHub
parent f7bb28a0fd
commit 43b806f89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,8 @@ describe('fastPowering', () => {
expect(fastPowering(16, 16)).toBe(18446744073709552000);
expect(fastPowering(7, 21)).toBe(558545864083284000);
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(-0.0003200000000000002);
expect(fastPowering(-5, -5)).toBe(0.0003200000000000002);
});
});