must_include

From WeBWorK_wiki
Revision as of 19:49, 18 November 2009 by Aubreyja (talk | contribs) (from ur manpages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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