Files
JavaScript/Maths/test/AliquotSum.test.js
Dumby 502aec24cb 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
2021-10-26 15:00:07 +05:30

16 lines
312 B
JavaScript

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)
})
})