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.
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.