Skip to content

Conversation

rpaloschi
Copy link
Contributor

When the container code checksum is 10, the function compares it with the last digit of the container code (that, in this case, would be 0).

A simple fix, we just need to compare the last digit in every case.

The fix contains a test that exposes the bug.

New doctest exposing the bug that passes after the fix is applied.
arthurdejong pushed a commit that referenced this pull request Oct 16, 2015
Bug fix for when the checksum is 10, it was compared to 0 and failed.
New doctest exposing the bug that passes after the fix is applied.

See: #30
@arthurdejong
Copy link
Owner

Thanks for the patch. Your fix was incorporated with a small modification, see fb0efe0.

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.

3 participants