add: 除自身以外数组的乘积
This commit is contained in:
5
test/array/product-of-array-except-self.test.js
Normal file
5
test/array/product-of-array-except-self.test.js
Normal file
@ -0,0 +1,5 @@
|
||||
import { productExceptSelf } from '../../src/array/product-of-array-except-self'
|
||||
|
||||
test('除自身以外数组的乘积', () => {
|
||||
expect(productExceptSelf([1, 2, 3, 4])).toEqual([24, 12, 8, 6])
|
||||
})
|
Reference in New Issue
Block a user