Visible vs. hidden test-cases

Visible vs. hidden test-cases

Erel Segal-Halevi -
回帖数:3
I have about 10 test-cases for my assignment. I would like to make the first 5 of them visible to the students, so that they can be used as examples. The last 5 cases should remain hidden, so that the students do not "overfit" their solutions to the test-cases. How can I do this?
回复Erel Segal-Halevi

Re: Visible vs. hidden test-cases

Garth Brady -
Particularly helpful Moodlers的头像

What do you mean by overfit? How can students determine a solution without knowing the required output?

are you looking for randomized output?

回复Erel Segal-Halevi

Re: Visible vs. hidden test-cases

Astor Bizard -
Plugin developers的头像
Hello,

You can use the "Fail message" option in vpl_evaluate.cases to override the default evaluation output (which displays program input and expected output).
Here is the documentation: https://vpl.dis.ulpgc.es/documentation/vpl-3.4.3+/biotes.html#controlling-the-messages-in-the-output-report

Best regards,
Astor