[Solution] Project euler challenge 19 with tests (#1659)

* [Solution] Project euler challenge 19 with tests

* update leap year function

* Remove unnecessary, confusingly placed comments

---------

Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
This commit is contained in:
Daniel
2024-06-17 23:08:16 -05:00
committed by GitHub
parent 0182bcacd0
commit 584424241c
2 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { problem19 } from '../Problem019.js'
describe('checking sundays during the twentieth century', () => {
// Project Euler Challenge Check
test('result should be 171', () => {
expect(problem19()).toBe(171)
})
})