Project Euler problems (numbering) : follow naming convention.

This commit is contained in:
Eric Lavault
2021-10-11 16:17:25 +02:00
parent df4a783b06
commit cb6201f03f
11 changed files with 2 additions and 2 deletions

View File

@ -0,0 +1,16 @@
import { calculateSumOfPrimeNumbers } from '../Problem010'
describe('checkAnagram', () => {
it('Return the sum of prime numbers upto but less than 14', () => {
const SUT = calculateSumOfPrimeNumbers(14)
expect(SUT).toBe(41)
})
it('Return the sum of prime numbers upto but less than 10', () => {
const SUT = calculateSumOfPrimeNumbers(10)
expect(SUT).toBe(17)
})
it('Return the sum of prime numbers upto but less than 100', () => {
const SUT = calculateSumOfPrimeNumbers(100)
expect(SUT).toBe(1060)
})
})