Skip to content
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

Fix issues #54 and #53 #57

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Fix issues #54 and #53 #57

merged 1 commit into from
Jan 5, 2024

Conversation

evarga
Copy link
Contributor

@evarga evarga commented Dec 31, 2023

Summary

This PR fixes issues #53 and #54 in a manner that complies with the original specification for the Season 1/Level 1 problem. The proposed changes are not over engineered to retain focus on the main bug.

Changes

File Changes
tests.py Added test_4 that ensures that invalid data will not blow up a system
Added test_5 that was missing to properly check for invalid item type
hack.py Renumbered the tests to continue from index 6
Added test_8 that checks for the maximum amount on an order using a correct order validation logic
solution.py Incorporated the necessary fixes for all tests to pass
Made the code more pythonic regarding testing for range of values
Added an extra paragraph to the explanation section about the importance to check for data types

Closes:

Task list

  • For workflow changes, I have verified the Actions workflows function as expected.
  • For content changes, I have reviewed the style guide.

@rsese rsese requested a review from a team January 2, 2024 17:12
@jkcso jkcso self-assigned this Jan 4, 2024
@jkcso jkcso merged commit 3e5e34f into skills:main Jan 5, 2024
4 checks passed
@evarga evarga deleted the fix--season-1--level-1 branch January 5, 2024 14:27
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.

2 participants