-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add luhn exercise #40
Conversation
43a3713
to
5f75300
Compare
@@ -0,0 +1,17 @@ | |||
{ | |||
"authors": [], |
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.
Needs your GitHub handle here.
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.
Thanks, added! :)
func test_is_valid_can_be_called_repeatedly(solution_script): | ||
solution_script.card_num = "055 444 285" | ||
return [solution_script.valid(), true] | ||
return [solution_script.valid(), true] |
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.
return [solution_script.valid(), true] |
Extra return line
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.
This is actually intentional, the rationale is given in the corresponding Python test file. I copied the comment from there, to make it clear ;)
3c92a81
to
1fd32df
Compare
@BNAndras in this PR I'm also making a small change in the |
1fd32df
to
4412431
Compare
I’d probably make it a separate PR for consistency, but leaving the unrelated change in is fine for now. |
No description provided.