If all tests in an SCT pass, the student is presented with a congratulatory message. You can specify this message with /codesuccess_msg(). It does not matter where in the SCT you specify this message, but at the end makes most sense.
success_msg(msg, praise = FALSE)
msg | The success message as a character string. |
---|---|
praise | Whether or not to prepend a message of praise from the |
For multiple choice exercises, the success message is specified
inside check_mc
, so an additional call of success_msg
is not necessary.