What are the secret tests?

A
Alessandro Vecchi (1870 points)
1 10 18
asked Nov 11, 2020 in HW4 required by Alessandro Vecchi (1,870 points)
Good morning, everyone,

while I was taking a look in the Italian Q2A forum I read many questions related to some "secret tests" and I saw many students actually worried about them. What are they and what do we have to do to pass them (if we also have them)?
190 views

3 Answers

b
benjamin (2490 points)
0 6 21
answered Nov 11, 2020 by benjamin (2,490 points)
I am pretty sure we have them. Their purpose is to catch if someone Hardcoded the solution. ( returning a specific value when a specific test is ran ).
Francesco.Danese (2130 points)
0 1 9
answered Nov 11, 2020 by Francesco.Danese (2,130 points)
reshown Nov 12, 2020 by Francesco.Danese
If your code is completely legit (no cheating, no trick after looking in tests files) you don't have to worry at all, if you pass normal tests it will pass also secret ones ;)
andrea.sterbini (172780 points)
514 935 1789
answered Nov 11, 2020 by andrea.sterbini (172,780 points)
They are medium-sized tests, plus some borderline (but small) cases.
t
tommasodimario (1110 points)
0 1 4
commented Nov 12, 2020 by tommasodimario (1,110 points)
so if we pass every test without hardcoding the solutions we don't have to worry?

Or should we still think about covering other borderline cases?

And when will this secret tests have place?

thanks in advance!!
andrea.sterbini (172780 points)
514 935 1789
commented Nov 12, 2020 by andrea.sterbini (172,780 points)
They are run after the last deadline.

You always have to think to borderline cases, it's you job as a developer :-)