Closed markkuriekkinen closed 2 years ago
I think this regex is the one that grades these inputs.
More precisely, it removes the REPL part from the value so that only the actual value is compared to the model solution.
For example, both res0: Int = 123456
and val res0: Int = 123456
should become just 123456
which is compared to the model solution. The model solution defined by the teacher in the configuration could be simply 123456
.
From the O1 course:
Private ticket: https://rt.cs.aalto.fi/Ticket/Display.html?id=21634
I think this regex is the one that grades these inputs. Currently, it doesn't seem to allow whitespace (
val res0
contains a space) in the start before the colon:
. https://github.com/apluslms/mooc-grader/blob/5b8b120453552f9b8a1a31e742ee14d240605054/access/types/forms.py#L478-L482