Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This kata is a duplicate of https://www.codewars.com/kata/60a38f4df61065004fd7b4a7
Hi,
cheers
If there're only 3 possible colors, then
color
should be anenum
. If you really want it to beString
, then tests must ensure that solutions like this do not pass.All the preloaded tests-related stuff should be moved to the fixture.
The reference solution must be
private
.What is this supposed to mean? My solution doesn't do that and it passes all the tests without any problems.
Having both
category
and its index in the enum at once is nonsensical design.