update: 和可被K整除的子数组

This commit is contained in:
2020-05-27 06:40:13 +08:00
parent 596ae26ade
commit a69362984c
10 changed files with 0 additions and 0 deletions

7
test/math/powx-n.test.js Normal file
View File

@ -0,0 +1,7 @@
import { myPow } from '../../src/math/powx-n'
test('Pow(x, n)', () => {
expect(myPow(2.00000, 10)).toBe('1024.00000')
expect(myPow(2.10000, 3)).toBe('9.26100')
expect(myPow(2.00000, -2)).toBe('0.25000')
})