Changing the mark of an example test case to 0

Changing the mark of an example test case to 0

de Sine Mete -
Número de respuestas: 4

Hello,

We have some example cases on the assignment, but we dont want to grade them; we only want to grade hidden cases. But there is a default mark for test cases. How can we do that?

Best, 

En respuesta a Sine Mete

Re: Changing the mark of an example test case to 0

de Richard Lobb -
If you uncheck All or nothing grading, you can set the marks for each question.
En respuesta a Richard Lobb

Re: Changing the mark of an example test case to 0

de Sine Mete -
Hello Richard,

It is already unchecked. But gives this error.screenshot
Best,
En respuesta a Sine Mete

Re: Changing the mark of an example test case to 0

de Richard Lobb -
Ah, ok. I guess that counts as a bug. I'll change the validator to check for non-negative rather than positive in the next push.

In the meantime, try setting a very small mark, like 0.000001. Should be indistinguishable from zero?
En respuesta a Richard Lobb

Re: Changing the mark of an example test case to 0

de Virginia Brassesco -
Hello, I guess I still have an incorrect version. When I set all the examples to mark 0, when I run the "precheck" I get a runtime error (division by zero).
When running the check its ok (because the other test cases are >0).

Error in question
Bad output from grader: 
Run result: Run error
Output: 

Traceback (most recent call last):
  File "__tester__.python3", line 190, in <module>
    outcome = tester.test_code()
  File "tester.py", line 287, in test_code
    mark, comp_and_run_errors = self.compile_and_run()
  File "tester.py", line 239, in compile_and_run
    mark = self.result_table.get_mark() / max_mark  # Fractional mark 0 - 1
ZeroDivisionError: float division by zero
. Your program execution may have aborted (e.g. a timeout or memory limit exceeded)


Just as an example here is the screenshot:
example test with mark zero and real test with 1