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.
why?
very bad for JS, dislike
It's fine I already figured it out. But to answer your question I don't edit sample cases so yes I'm sure I never added those samples.
JS fork (author gone)
complete overhaul with random tests, sample tests, edge cases (1-letter words), chai assertions
i dont see anything in the sample tests. this is an old kata with many issues in JS, it has no sample tests, no random tests, and uses the old Codewars framework. are you sure you did not add those sample tests yourself ? (perhaps long ago; Codewars caches your code and the sample tests unless you click on RESET)
Nevermind I figured it out. It turns out that for whatever reason the "TEST" and the "ATTEMPT" use 2 different function names. "TEST" uses
toSnakeCase
while "ATTEMPT" usestoUnderscore
. Very weird first time I've ever seen this on codewars.Thank you but actually I didn't rename it, for me it was called
toSnakeCase
. Renaming it totoUnderscore
breaks it and it says this:that's because you renamed the function. it's supposed to be called
toUnderscore
.There's an issue with the tests once I press "Attempt". It shows this:
I'm using javascript and I have tested multiple solutions even putting them in replit and my solutions are fine.
Yes, my code was wrong. I have solved the issues. Thank You.
Your code is wrong, the tests are fine. Not a kata issue. Print the input to help you debug your code.
So I solved it in Python myself with no problems, and I'm left with even more questions than before. The word "love" doesn't appear anywhere in the tests, or in their generation. Are you sure you're not making this up?
See https://docs.codewars.com/training/troubleshooting/#print-input
If test cases were wrong, how would they be approved in the first place? And then, how would 6k+ users be able to successfully solve them? I haven't attempted this in Python, but your claims seem ludicrous.
Test cases in python needs to be correct. around 6 or more testcase have wrong solution or question. like "IloveYou" the expected output is "i_love_you". As 'l' is not capital the expected output would be incorrect.
Tag added
Loading more items...