Forum archive 2000-2006

Michael Gage - must_include

Michael Gage - must_include

by Arnold Pizer -
Number of replies: 0
inactiveTopicmust_include topic started 8/15/2004; 4:47:56 PM
last post 8/15/2004; 4:47:56 PM
userMichael Gage - must_include  blueArrow
8/15/2004; 4:47:56 PM (reads: 1181, responses: 0)

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

See Also

must_have_filter;

Macro Definition File

PGasu.pl

 

<| Post or View Comments |>