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.
Javascript. And sorry, I pasted the wrong error message. The correct one was this:
The server attempted to execute your code but there was an issue with the request. This should be a rare issue. Please try running your code again. If the issue persists, please contact us.
So not a timeout issue, but a issue with the request itself as it seems. I tried running the same code on the server multiple times now, every time the same message.
This comment is hidden because it contains spoiler information about the solution
Try it without the added quotes. The quotes are just for providing a String literal (like in the example). Your variable 'd' is probably already a String, so you can just use it in the get method as-is. So just leave out the first line of your code there.
I unfortunately cannot see your reply, as I don't have solved the kata yet, and your reply supposedly contains a spoiler. What did you write, if you don't mind me asking?
Edit: After replying I saw your comment, and found out what the problem was.
The issue is that i forgot to check for an empty string (testFixedStrings, 6th call there), but the test just failed with a "0", no further info. It would be nice if there was some feedback on why that one fails.
Thank you for your help, AkyunaAkish!
I have tried to solve this kata in Java, and I was quite sure my solution would work. But I get a "Test passed" on the second and third test, but just a "0" with no info on what's wrong on the first one. Looking at an output via System.out.println does not show anything that would anything else than the expected solution, but I don't know how the tests are setup. Is there a way to see the expected output of the tests?
Thanks! :)