Skip to content

Conversation

@fahadhk
Copy link
Contributor

@fahadhk fahadhk commented Jun 24, 2021

A new positive test case with odd number of digits and non-zero first digit.
I have seen a solution in Golang which passes all the tests for Luhn containing odd number of digits and never reads the first digit.
It happens because in all such cases the first digit is zero . I am sure it is also relevant for Kotlin as well.

A new positive test case with odd number of digits and non-zero first digit.
@SleeplessByte
Copy link
Member

I think this test has been added to problem-specifications. We should use that test instead.

@fahadhk
Copy link
Contributor Author

fahadhk commented Oct 24, 2021

@SleeplessByte That sounds great. @ErikSchierboom pointed me to that. I did that for csharp repo, can you point me to the test generator for this repo?

@fahadhk
Copy link
Contributor Author

fahadhk commented Oct 25, 2021

Is there any guide for kotlin repo like there is for csharp? exercism/csharp#1543

@ErikSchierboom
Copy link
Member

@fahadhk I don't think there is. I could be wrong though.

@fahadhk
Copy link
Contributor Author

fahadhk commented Oct 27, 2021

Hey @SleeplessByte, a fellow maintainer suggested these changes to me in slack. Can you please have a look.

Cheers

Copy link
Member

@SleeplessByte SleeplessByte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Thank you very much @fahadhk

@SleeplessByte SleeplessByte merged commit af9f35d into exercism:main Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:size/small Small amount of work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants