add: 快乐数
This commit is contained in:
6
test/array/happy-number.test.js
Normal file
6
test/array/happy-number.test.js
Normal file
@ -0,0 +1,6 @@
|
||||
import { isHappy } from '../../src/array/happy-number'
|
||||
|
||||
test('快乐数', () => {
|
||||
expect(isHappy(19)).toBe(true)
|
||||
expect(isHappy(5)).toBe(false)
|
||||
})
|
Reference in New Issue
Block a user