8000 05_sumAll: Fix tests to require correct range summation by RedViperPT · Pull Request #524 · TheOdinProject/javascript-exercises · GitHub
[go: up one dir, main page]

Skip to content

05_sumAll: Fix tests to require correct range summation #524

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

Conversation

RedViperPT
Copy link
Contributor
@RedViperPT RedViperPT commented Feb 11, 2025

Because

Improving the tests in javascript-exercises 05 to ensure solutions match expected behavior. Current tests don't require adding numbers between a provided interval, just all the numbers up to the biggest value. This allows incorrect solutions (that don't consider the lower bound if it isn't 1) to pass the tests.

This PR

  • Modifies a test case to use a range with a lower bound other than 1.

Issue

Closes #510

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this PR follows the location of change: brief description of change format, e.g. 01_helloWorld: Update test cases
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If this PR includes any changes that affect the solution of an exercise, I've also updated the solution in the /solutions folder

@JoshDevHub JoshDevHub merged commit d4421b0 into TheOdinProject:main Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In 05_sumAll: Improve testing to match exercise description
2 participants
0