mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-10 14:22:53 +08:00
Project Euler problems (numbering) : follow naming convention.
This commit is contained in:
16
Project-Euler/test/Problem010.test.js
Normal file
16
Project-Euler/test/Problem010.test.js
Normal 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)
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user