The failure messages are inconveniently truncated (see the issue below).
It would be nice to know the max possible position. Without this info, it is not known if the only cardinal suffixes we have to handle are 2nd and 3rd, or maybe there also is 21st, 22nd, 23rd, etc.
It would be nice if failed tests presented inputs to help users with recreating filed test cases.
I would suggest to improve coverage of tests by creating some guaranteed amount of racers starting at positions 1-20 to make 100% sure that random tests cover positions like 1st, 2nd, 3rd, 11th, 12th, 13th. You can see the example kata for tests with targeted random generators.
Thank you!
cool!, your code help me to know more info about Array.from. Good job
Indeed. And it has some more faults, but this is a 7kyu kata, so simpler solutions are acceptable.
I think this regex would still say that this is a valid number: "--+--+1.33".
Thanks! I've read it somewhere, liked it also and implemented it.
I like this prime checking function! Good thinking :D
πππ
Issue resolved.
I think the tests now offer better coverage. Thank you for the suggestions.
Thank you for you input. Fixed that.
Thank you so much for your comment. I will work on these fixes and update. Cool solution!
A bunch of problems with this one:
2nd
and3rd
, or maybe there also is21st
,22nd
,23rd
, etc.See JavaScript authoring guide for help.
Expected info cannot be displayed fully without code below.
I think it's nice to study ninja code. You learn more stuff this way. It's ok to reproduce it for studying reasons.
Mine is probably the most brain dead solution :-D
Loading more items...