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.
Also, your code has undefined behaviour: strings should end with a terminator. But your string did not accomodate for it ;-)
Passing the sample tests does not mean anything, it's only a very tiny subset of the entire test suite ;-)
This comment is hidden because it contains spoiler information about the solution
It's not an issue if you can't pass the tests and you aren't certain why the tests don't pass, but a
question
;-)And nobody could look at it if you don't show what you're doing, so you should post your code marked as spoiler.
hello, i write my solution in C ...
My solution pass all the sample test.
When i press "ATTEMPT" instead I have a only one error :
"The expression (as strings) (to_alternating_case(s)) == (solution(s)) is false."
in
should_work_for_random_tests... it's only one.
I believe there is a one problem about a special random character ..
How can I solve it? How to send an admin?
That's so wierd. Maybe I accidentally deleted some of the string, thought it was super odd 🤔
The reference solution of JS random tests is done by adding another prototype method to
String
object, which is completely unnecessary and prone to bypasses.There is no such test case though.
One of the tests for JS is incorrect, it reads: Test.assertEquals("toAlternatingCase".toAlternatingCase(), "sTRING.PROTOTYPE.TOaLTERNATINGcASE");
It needs updating to: "Test.assertEquals("String.prototype.toAlternatingCase".toAlternatingCase(), "sTRING.PROTOTYPE.TOaLTERNATINGcASE");"
this issue is still happeneing for me
Fixed.
The final tests have an issue, they give the error: undefined method `are_you_playing_banjo' for main:Object (NoMethodError)
Did you mean? areYouPlayingBanjo (In Ruby)
A few issues with this one in Ruby it seems. Needs more test cases.
Can't see where one of the tests has failed, I get: 2 passes with 'Buy' and 'Pass' then one fail...