merge: Added Aliquot Sum Implementation (#810)

* Added LucasSeries

* Added more tests and renamed function

* Changed RangeError to TypeError

* Added Aliquot Sum and tests

* Fix ALiquot tests, need to learn how to use Jest

* Added some explanation for the Aliquot sum
This commit is contained in:
Dumby
2021-10-26 15:00:07 +05:30
committed by GitHub
parent 4fb0809666
commit 502aec24cb
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { aliquotSum } from '../AliquotSum'
describe('Aliquot Sum of a Number', () => {
it('Aliquot Sum of 6', () => {
expect(aliquotSum(6)).toBe(6)
})
it('Aliquot Sum of 1', () => {
expect(aliquotSum(1)).toBe(0)
})
it('Aliquot Sum of 28', () => {
expect(aliquotSum(28)).toBe(28)
})
})