Resistor Color in C#

Instructions say “Black”
exercise tests for “black”

I caught this pretty early, but I feel like i could have been scratching my head for a while.

1 Like

Exercism practices TDD - always look to the tests as the requirements. The instructions are like an executive summary, but the tests are the source of truth.

1 Like

Is there a need though to keep these colors capital-cased in the instructions? Lowercasing the encoding table should be also done for Resistor Color Duo and Trio. The instructions for these two write the colors lowercased in the examples so lowercasing the encoding table to match makes sense to me.

I think updating the instructions to match the data is reasonable.

I agree with that. PR is welcome :)

2 Likes

Merged to the problem spec. Now we just need to sync it down to the tracks.

1 Like

I’ve just synced all three exercises to all the implementing tracks.

FWIW, I do recall this was intentional and previously discussed.

On top of that, one line lower it says that color (lowercase) should encode to value.