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 comment is hidden because it contains spoiler information about the solution
could one please tell me about +c? Seems it converts string to int!
Approved fork
Approved
You forgot to add it to assertion messages of fixed tests
Also, missing
return {r: 0, g: 0, b: 0}
in initial solution setupQuotes added.
I disagree with that, users should know that the given input is a string upon their code fails, hence the message should be wrapped in quotes (refer to example tests which also use quotes)
The assertion messages and random test's
it
block should beJSON.stringify(hex)
instead of justhex
Also, please update to TS 4.9 as it currently says
invalid version
I did not change that part of the translation from jdold07, I merely made the return types more specific.
I personally never used lodash much, so I don't know what functions and constants it makes available from the top of my head.
I suspect the same for jdold07.
Is there a reason you have rolled your own
randInt
rather thanimport {random} from 'lodash'
?Made return type of solution setup and sample solution more specific.
as usually. it's difficult to make intresting task, so people trying to make more mysterious task, but as was mentioned in other Kata, trying to understand what people really want you to do, is part of the job) so from that perspective good kata) remember 7 red lines)
I agree. True OOP work.
Sample tests are wrong, change
Test.assertEquals
forassert.strictEqual
to fix them.Loading more items...