Skip to content

Commit 85780e0

Browse files
committed
test: remove unnecessary and slow second check
1 parent 08d8c6b commit 85780e0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import { problem44 } from '../Problem044.js'
22

3-
describe('checking nth prime number', () => {
3+
describe('Project Euler 044 - Pentagon numbers', () => {
44
test('should be invalid input if number is negative', () => {
55
expect(() => problem44(-3)).toThrowError('Invalid Input')
66
})
7+
78
test('should be invalid input if number is 0', () => {
89
expect(() => problem44(0)).toThrowError('Invalid Input')
910
})
10-
// Project Euler Condition Check
11-
test('if the number is greater or equal to 1', () => {
11+
12+
test('solves the problem', () => {
1213
expect(problem44(1)).toBe(5482660)
1314
})
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-
})
1815
})

0 commit comments

Comments
 (0)