+ 5

Why are some test cases hidden !?

It can be a bit difficult to solve the problem in code coach, without actually knowing what is worng ?!?!

26th May 2020, 7:26 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
17 Respostas
+ 5
I agree with the poster. IF the instructions are clear this makes sense. BUT I have had several challenges where I met all the conditions in the instructions and fail a hidden test... how are you supposed to fix that? We are learning things here - so we do not know every bit of syntax and little tidbit that it could be without something to guide us there... In real life it does what it is supposed to, there is nothing visibly wrong. This does not help me debug ( which I don't mind IF I am not meeting a condition I know about!), it just pisses me off. If you have test cases they either need to be clearly noted in the instructions or some hint given somewhere. While I agree this slows down cheating, all people have to do is google the code and use that instead so anyone claiming it is all about reducing cheating has missed the mark. It is just making it harder for those of us trying to learn. You need to have an idea of what to look for before you can hope to find it! Sounds like sololearn needs a different check to prevent people from just making x == value cheats.
9th May 2021, 10:29 PM
Patrick Frank
Patrick Frank - avatar
+ 11
Hidden test cases helps us develop the habit of thinking more like a programmer. Programming requires broad thinking, taking into account multiple scenerios that might occur after a software launch. This ultimately helps us for improving our thinking that we need while working on real time projects.
26th May 2020, 8:42 AM
Solo L earner
Solo L earner - avatar
+ 9
If all the test cases are shown then the person can just write that if the input is 'abc' then print 'cba' and can get all the cases correct by just using 'if' statements I hope you understand
26th May 2020, 7:29 AM
Namit Jain
Namit Jain - avatar
+ 6
I just wish you could see the test cases when you get them all right
6th Mar 2021, 7:44 AM
Andrew
Andrew - avatar
+ 3
But there are some cases where it would be hard to figure out what has gone wrong !! In that case atleast a small hint kinda thing would be great !
26th May 2020, 7:31 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
+ 3
That's why sololearn has made available a feature of discussions where you can ask hints of solutions from other people or maybe the whole solution....
26th May 2020, 7:36 AM
Namit Jain
Namit Jain - avatar
+ 3
For an algorithm(steps in solving the problem ) to be correct, it must produce the same output for any given input. If all test cases were shown it will simply make us write the code with respect to the inputs shown not considering other inputs.
31st Jul 2020, 9:26 AM
BRYAND CHE
BRYAND CHE - avatar
+ 2
Ya that's true it's a clever design šŸ˜‚šŸ˜‚
26th May 2020, 7:50 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
+ 2
Seriously true, awesome one SoloLearn
26th May 2020, 9:10 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
+ 2
If the test cases were to be unlocked, people could just cheat and make output based on the input, but not much coding.
1st Nov 2020, 9:50 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
3rd Nov 2020, 1:57 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
0
i see why they do it but if you got all the test cases correct why not let us see them.
9th Jan 2021, 6:02 AM
Bryan
0
Bryan check the ticked answer by Iron Man
10th Jan 2021, 10:05 PM
BRYAND CHE
BRYAND CHE - avatar
0
Ya even that's cool
11th Apr 2021, 5:57 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
0
M. Aamir Shaikh and Namit Jain [INACTIVE] Yes, but if we code all of is required in the case, there is another scenario.
11th Apr 2021, 1:58 PM
Ivan Zanoth
Ivan Zanoth - avatar
0
Very true Patrick Frank , frankly said even I was thinking the same but couldn't convey..! Thanks man..!
10th May 2021, 3:49 AM
Ankith M Kashyap
Ankith M Kashyap - avatar
0
Some cases are hidden so that they can be pretty certain you actually solved the problem instead of just writing an if else statement that gives the expected output based on the given input without understanding what you're actually supposed to do, and I get that. What upsets me is when there are only hidden cases, meaning I can't even tell if there was an error with the code that prevented it from even running (which is likely, I'm trying to learn a whole new language when I'm using Sololearn), in which case I would really like to see what the error was and where it was, or if my logic for solving the problem at hand is just invalid, in which case seeing what the actual output was would be helpful in determining where I went wrong. In either case I'm given absolutely no feedback besides a simple "WRONG!", leaving my scratching my had as to why, which really does not help me learn anything.
30th Apr 2023, 4:31 AM
The Sleeper
The Sleeper - avatar