We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d8c6b commit 85780e0Copy full SHA for 85780e0
1 file changed
Project-Euler/test/Problem044.test.js
@@ -1,18 +1,15 @@
1
import { problem44 } from '../Problem044.js'
2
3
-describe('checking nth prime number', () => {
+describe('Project Euler 044 - Pentagon numbers', () => {
4
test('should be invalid input if number is negative', () => {
5
expect(() => problem44(-3)).toThrowError('Invalid Input')
6
})
7
+
8
test('should be invalid input if number is 0', () => {
9
expect(() => problem44(0)).toThrowError('Invalid Input')
10
- // Project Euler Condition Check
11
- test('if the number is greater or equal to 1', () => {
12
+ test('solves the problem', () => {
13
expect(problem44(1)).toBe(5482660)
14
- // Project Euler Second Value for Condition Check
15
- test('if the number is greater or equal to 2167', () => {
16
- expect(problem44(2167)).toBe(8476206790)
17
- })
18
0 commit comments