python icon indicating copy to clipboard operation
python copied to clipboard

Insufficient test cases for "Resistor Color Expert"

Open xanni opened this issue 1 year ago • 4 comments

I submitted code that passed all the existing tests but failed to correctly handle some actual resistor values in use in the E48 (2% tolerance) and larger series. There are currently no tests for 5-band resistors where the second band is black, which my earlier iteration handled wrongly.

xanni avatar Oct 21 '24 16:10 xanni

Hello. Thanks for opening an issue on Exercism 🙂

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.

github-actions[bot] avatar Oct 21 '24 16:10 github-actions[bot]

Linking forum discussion.

Happy to accept suggested test cases and/or PR. 😄

BethanyG avatar Oct 22 '24 17:10 BethanyG

PR created: https://github.com/exercism/python/pull/3797

xanni avatar Oct 23 '24 07:10 xanni

I am going to keep this open until we figure out if we want 3-band cases. I am leaning towards "no", but want to discuss it a bit on the forum first. 😄

BethanyG avatar Oct 24 '24 17:10 BethanyG

I’ve opened a PR with the additional edge-case tests discussed here:

PR: https://github.com/exercism/python/pull/4047

Please let me know if this approach looks good or if any changes are needed. Thanks!

deekshahavaragi avatar Dec 13 '25 21:12 deekshahavaragi

Hi @deekshahavaragi -- while I appreciate the enthusiasm, the forum discussion related to this came down on the side of no additional edge cases, since they were wandering away from the intent of the exercise. I forgot to close this issue, but will be doing so now.

Additionally, your PR appears to only have made whitespace changes - was that intentional?

BethanyG avatar Dec 14 '25 11:12 BethanyG