How do you find out what the test cases are?
When I have submitted a solution through the OneCompiler editor, it has mentioned I have passed/failed some of the test cases e.g. 0/2 test cases.
Perhaps I'm being stupid, but how do you find out what the test cases are, so that you can learn from them/fix them?
2 Answers
@Bella Gladman
Currently testcases are private, the only sample testcases are visible (part of the problem description)
The point of hiding testcases from users is to be certain they are able to solve the challenge. Some might even attempt writing if-statements with certain inputs and outputting the results of the testcases, I've seen it happen on some other websites. You may, however, send some of your own input before submitting the code. It's around the right side of the screen, you should be able to spot it quite easily.
All the best, Quillsh Wammy.