seems solved, thanks for your diligence :)
Thanks for your report.
Indeed, it was broken so just fixed its test.
Also, in the test, data of 1st ranker will be used as long as its data is read valid, so it should be easier to check the error in the future.
Please check its change and mark issue resolved if the fix was fine.
I've completed this kata a long time ago and came back to it today because my solution has been invalidated.
It seems that an update to the kata made the off-by-one problem mentionned a few comments below reappear : the description states that the indexes are 1-based (e.g. the first codewarrior is number #1, not number #0), whereas the tests work as if they were 0-based ; for example,
when the tests ask for user number 100 (calling our function with n = 100), it is actually the 101th user's data that is expected.
I managed to pass by simply adding 1 to n before doing anything else
This was a very fun Kata! I only used built-in modules as I didnt know external modules were supported. So a note for new users, you can use external modules. :)
'alr approved some time ago'
Thank you for the report. I have verified it broken and fixed it.
This comment is hidden because it contains spoiler information about the solution
Just realised this guy is rank 49 on CW and cheating Oo
I have checked the validity of this kata and working fine since 2 years ago.
I don't know about the list but it should be another problem if it could not detect the fix of the katas.
Is this kata currently working (in python)? There was old discussion of it being broken, and I assume it was fixed, but it is also listed on github as having broken tests.
If it's working, then I'm stumped :(
Thank you very much! I should sleep as I could not come up with it....
3*10+2*8...? (seems like I'm not the only one who should be in his bed right now... x) )
In randome tests, I got 10 should equal 5 for 46 [1, 1, 8, 10]. How can 5 coins become 46?
10 should equal 5
46 [1, 1, 8, 10]