add: 完美数

This commit is contained in:
2020-05-22 13:30:10 +08:00
parent bf6f71f55f
commit 6a8d487f93
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,6 @@
import { checkPerfectNumber } from '../../src/math/perfect-number'
test('完美数', () => {
expect(checkPerfectNumber(28)).toBe(true)
expect(checkPerfectNumber(2)).toBe(false)
})