-
-
Notifications
You must be signed in to change notification settings - Fork 547
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
alphametics: v1.3.0 Add test for two digits carry #1344
Conversation
Add test where result is longer than largest addendum by more than one digit. In solutions that sum each digit separately this could be useful to make sure final carry is handled correctly. For example: not treated as a single digit. Resolves: 1342
Awesome, thanks @omer-g . I'm a but rusty on the mechanics of alphametics, so it would be nice if @petertseng could run his test script over it to double check. |
that is not possible for hours or days (unknown period of time). I suggest that interested parties should run it themselves |
Thank you. I checked the new test case manually on several solutions in the Python track, including the example.py solution. I can try and run the script (if I'll know where to find it). |
petertseng has a verify branch on his fork: https://github.com/petertseng/exercism-problem-specifications/blob/verify/exercises/alphametics/verify.rb |
Thanks. I ran the script and the tests passed. |
Great, thanks. |
Probably worth raising another issue for this (and I will if needed), but has there ever been discussion on creating a GitHub Status Check that runs @petertseng's verify scripts? |
feel free to add any additional information there if you have any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clearly a useful case, with a clear description of why it is useful.
it's been > 72 hours since submission; there have been no requests for changes and there are (now including myself) two Approvals (in the GitHub sense of the word) so it seems safe to merge it.
Thanks for adding the case!
Add test where result is longer than largest addendum by more than one
digit. In solutions that sum each digit separately this could be useful
to make sure final carry is handled correctly. For example: not
treated as a single digit.
Resolves #1342