-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add tests for Project Euler Problem 5 + minor refactor #1691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
b7309f0
📦 NEW: Added solution for ProjectEuler-007
omkarnathparida d3a3b33
🐛 FIX: Spelling mistake fixes
omkarnathparida e9b5a6a
👌 IMPROVE: changed variable name from `inc` to `candidateValue` and t…
omkarnathparida e99c722
👌 IMPROVE: Modified the code
omkarnathparida 5ac898f
Merge branch 'TheAlgorithms:master' into master
pomkarnath98 0f9f1ba
👌 IMPROVE: Added test case for ProjectEuler Problem001
omkarnathparida 3caad5c
Merge branch 'TheAlgorithms:master' into master
pomkarnath98 b7584fd
Merge branch 'TheAlgorithms:master' into master
pomkarnath98 6693f9c
Merge branch 'TheAlgorithms:master' into master
pomkarnath98 0830570
Merge branch 'TheAlgorithms:master' into master
pomkarnath98 4d7149c
Merge branch 'TheAlgorithms:master' into master
pomkarnath98 53e3938
👌 IMPROVE: Added test cases for Project Euler Problem 4
omkarnathparida 96224e7
👌 IMPROVE: auto prettier fixes
omkarnathparida 2863fa1
📦 NEW: Project Euler Problem 5 improvement and added test cases
omkarnathparida 718d515
Merge branch 'TheAlgorithms:master' into master
pomkarnath98 31329fc
Merge branch 'master' into project-euler-5
omkarnathparida 96735d2
Updated Documentation in README.md
pomkarnath98 b58c0a7
👌 IMPROVE: code improve
omkarnathparida f19f152
Merge branch 'project-euler-5' of https://github.com/pomkarnath98/Jav…
omkarnathparida 5f7d046
🐛 FIX: remove extra code
omkarnathparida c0bf102
Merge branch 'TheAlgorithms:master' into project-euler-5
pomkarnath98 a1117ef
👌 IMPROVE: test cases writing imrovements
omkarnathparida f3afdbb
Merge branch 'project-euler-5' of https://github.com/pomkarnath98/Jav…
omkarnathparida File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { findSmallestMultiple } from '../Problem005.js' | ||
|
||
describe.concurrent('Find smallest multiple', () => { | ||
test('if max divisor is 10', () => { | ||
expect(findSmallestMultiple(10)).toBe(2520) | ||
}) | ||
test('if max divisor is 15', () => { | ||
expect(findSmallestMultiple(15)).toBe(360360) | ||
}) | ||
|
||
// Project Euler Condition Check | ||
test('if max divisor is 20', () => { | ||
expect(findSmallestMultiple(20)).toBe(232792560) | ||
}) | ||
}) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.