+ 1

The spy life challenge in code coach doesn't get solved despite my output matching the test results.

My code outputs same result as test cases do but still says tests failed..!!

10th Nov 2020, 10:41 AM
Ameer Haider
Ameer Haider - avatar
7 ответов
+ 4
Check if you print a character without a console representation somewhere, for example a space at the end or a null character. Printing such characters, although not visible, will lead to the comparison between your output and the solution to fail. If you can't find anything, feel free to copy the code into a project and link that here, so that we may take a look.
10th Nov 2020, 10:49 AM
Shadow
Shadow - avatar
+ 3
I just copied the code into my code coach and it worked fine. I also don't see anything that would cause it to fail immediately. If the test cases aren't solved for you with the code above, you might want to write a mail to SoloLearn: info@sololearn.com
10th Nov 2020, 12:25 PM
Shadow
Shadow - avatar
+ 2
But you can't see all test cases
10th Nov 2020, 10:45 AM
Abhay
Abhay - avatar
+ 2
Okay, lol. Interesting. I'm glad it somehow worked out now though.
10th Nov 2020, 12:30 PM
Shadow
Shadow - avatar
10th Nov 2020, 12:09 PM
Ameer Haider
Ameer Haider - avatar
+ 1
Shadow Thanks for your help, it's working now. Passed all the tests..! Thanks again..!
10th Nov 2020, 12:28 PM
Ameer Haider
Ameer Haider - avatar
0
Yes of course but first two cases are correct but still shows those two as wrong...
10th Nov 2020, 10:49 AM
Ameer Haider
Ameer Haider - avatar