I am using WW2.1 and have an answer macro of the form:
ANS(num_cmp("DNE", strings=>["DNE"]));
and get a pink screen and the warnings below when the string DNE is
entered. No answer is registered as being entered in the box which
previews answers and indicates correctness.
If a numeric response is given, it is accepted, marked wrong, but without a pink screen.
This format is the one listed in PGAnswermacros.pl.
Is there some other change of which I am not aware?
Thanks
Tom
Warning messages
* Error in Translator.pm::process_answers: Answer AnSwEr9: |DNE|
* Not a CODE reference at line 4330 of (eval 139)
Died within main::check_strings called at line 545 of [PG]/lib/AnswerHash.pm
from within AnswerEvaluator::evaluate called at line 1 of (eval 636)
* Error in Translator.pm::process_answers: Answer AnSwEr9:
* Answer evaluators must return a hash or an AnswerHash type, not type || at /var/pg/lib/WeBWorK/PG/Translator.pm line 1158
* Use of uninitialized value in numeric ge (>=) at /var/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 929.
* Use of uninitialized value in numeric ge (>=) at /var/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 252.
* Use of uninitialized value in pattern match (m//) at /var/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 253.
* Use of uninitialized value in numeric ge (>=) at /var/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 254.
* Use of uninitialized value in numeric gt (>) at /var/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 254.
* Use of uninitialized value in numeric gt (>) at /var/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 257.
<| Post or View Comments |>
|