You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the intent of the exercise is to treat the input list digits as a single number in the original input_base and to convert that number to a number in output_base expressed as a list of digits. For example, rebase(7, [0, 6, 0], 10) means, "convert 60 from base-7 to base-10."
If that is a correct understanding, then I believe that two of the tests are expecting incorrect results:
At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.
This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!
If you're interested in learning more about this auto-responder, please read this blog post.
I have some feedback on the tests for this exercise: https://exercism.org/tracks/python/exercises/all-your-base.
I believe the intent of the exercise is to treat the input list
digits
as a single number in the originalinput_base
and to convert that number to a number inoutput_base
expressed as a list of digits. For example,rebase(7, [0, 6, 0], 10)
means, "convert 60 from base-7 to base-10."If that is a correct understanding, then I believe that two of the tests are expecting incorrect results:
First Issue
https://github.com/exercism/python/blob/main/exercises/practice/all-your-base/all_your_base_test.py#L35
The correct answer should be
[9, 35, 17, 71, 31]
Second Issue
https://github.com/exercism/python/blob/main/exercises/practice/all-your-base/all_your_base_test.py#L32
The correct answer should be
[2, 0, 1, 1, 2, 0]
Thanks for your time and my apologies if I'm missing something about the exercise or the math involved here.
My code for this challenge, which you're under no obligation to look at unless it's diagnostically useful for you, is here.
The text was updated successfully, but these errors were encountered: