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

Luhn calculation method does not return correct check digit #2

Closed
MylesFTOP opened this issue Mar 5, 2020 · 1 comment
Closed

Luhn calculation method does not return correct check digit #2

MylesFTOP opened this issue Mar 5, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@MylesFTOP
Copy link
Owner

The method currently in the main Program class does not return the correct check digit when tested. The logic needs checking to make sure that it is performing the algorithm correctly.

@MylesFTOP MylesFTOP self-assigned this Mar 5, 2020
@MylesFTOP MylesFTOP added the bug Something isn't working label Mar 5, 2020
@MylesFTOP
Copy link
Owner Author

Fixed in last commit - the issue was that operands had been assigned inside the for loop, so were being reset mid-calculation. Validated against calculation from Luhn Algorithm calculator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant