Content-Length: 262711 | pFad | http://github.com/TheAlgorithms/JavaScript/commit/9c07bb110758aae6316385c966b42add948b0586

3B Test cases project euler 9 (#1571) · TheAlgorithms/JavaScript@9c07bb1 · GitHub
Skip to content

Commit 9c07bb1

Browse files
pomkarnath98omkarnathparidagithub-actions
authored
Test cases project euler 9 (#1571)
* 📦 NEW: Added solution for ProjectEuler-007 * 🐛 FIX: Spelling mistake fixes * 👌 IMPROVE: changed variable name from `inc` to `candidateValue` and thrown error in case of invalid input * 👌 IMPROVE: Modified the code * 👌 IMPROVE: Added test case for ProjectEuler Problem001 * 👌 IMPROVE: Added test cases for Project Euler Problem 4 * 👌 IMPROVE: auto prettier fixes * 👌 IMPROVE: Added test cases for project euler problem 9 * Updated Documentation in README.md * Updated Documentation in README.md --------- Co-authored-by: Omkarnath Parida <omkarnath.parida@yocket.in> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 9a87526 commit 9c07bb1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Project-Euler/test/Problem009.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { findSpecialPythagoreanTriplet } from '../Problem009.js'
2+
3+
describe('Pythagorean Triplet', () => {
4+
// Project Euler Condition Check
5+
test('the multiplication of the pythagorean triplet where a + b + c = 1000', () => {
6+
expect(findSpecialPythagoreanTriplet()).toBe(31875000)
7+
})
8+
})

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/TheAlgorithms/JavaScript/commit/9c07bb110758aae6316385c966b42add948b0586

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy