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 difficult to say without seeing your code, but do you get the error locally when running your solution with exactly the same input which causes exceptions on CW?
Hello,
Anyone can help me here? I've tested several times on VSCODE and it works just fine. However, here I keep receiving the return:
Caught std::exception, what(): basic_string::_M_create
Thanks Chrono79. I will be reading the md instruction and just figured the issue as you guided.
Read how to use markdown formatting in the link I gave you.
Leave only this test uncommented:
Assert::That(format_duration(1), Equals("1 second"));
And change your return line to:
return output + "*";
The error message becomes this:
This comment is hidden because it contains spoiler information about the solution
https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#how-do-i-post-to-a-kata-discourse
My code is returning the correct output, however there that it has not passed the tests.
OUTPUT message:
"
Expected: equal to 1 second
Actual: 1 second
Expected: equal to 182 days, 1 hour, 44 minutes and 40 seconds
Actual: 182 days, 1 hour, 44 minutes and 40 seconds
Expected: equal to 11 hours, 48 minutes and 42 seconds
Actual: 11 hours, 48 minutes and 42 seconds
"
And I checked it on my IDE just in case of additional spaces, and it shows no additional spaces. What should I do?