File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11import { 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} )
You can’t perform that action at this time.
0 commit comments