Difference between revisions of "Must include"

From WeBWorK_wiki
Jump to navigation Jump to search
(from ur manpages)
 
(No difference)

Latest revision as of 20:49, 18 November 2009


Description

Wrapper for other answer evaluators. It insists that a string is part of the answer to be marked right.

Syntax

must_include(ans_evaluator, required_string)

Params

ans_evaluator: answer evaluator
required_string: string

Action

checks answer string -- answer is marked wrong unless $str is present

Returns

new answer evaluator

Notes

Bug?: Should also allow an error message to be specified