testwhat (version 4.2.2)

success_msg: Define the success message

Description

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.

Usage

success_msg(msg)

Arguments

msg
The congratulatory message as a character string.

Details

For multiple choice exercises, the success message is specified inside test_mc, so an additional call of success_msg is not necessary.