+ 3
How does Sololearn automated test case works?
Hey geeks, I'm interested to know how Sololearn automated test case system works..! Can you suggest me any article regarding the same or any sample code related to this! Thanks in advance!
7 Respuestas
+ 9
Ankith M Kashyap yes. Ideally the job of this is to take your code,
- compile it
- check for compilation errors
- execute your code by giving some hidden inputs
- collect the output from your code
- check for runtime errors
- match your output with their hidden test outputs
- give a verdict accordingly.
+ 4
There are no automated generated test cases on sololearn. It just checks your code with pre-installed test cases.
Every time your code is tested with same test cases. That's why they don't show all of them to you
+ 4
They execute some steps:
1: the app sends code and input to server
2: the server executes the code and provides the input
3: the output is sent to the app
4: the app checks the output
5: the output of test cases are shown
+ 3
Ankith M Kashyap you are welcome 🙂
+ 2
Arsenic thanks for the reply, but like how it's done (so I'm understanding like this it's a program in a program?)
+ 2
Arsenic thanks a lot bro!
+ 2
Hey Aradhay Mathur thanks a lot!