must_include

From WeBWorK
Jump to: navigation, 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
follow us