From: Mike G. v. a. <we...@ma...> - 2007-11-10 21:57:13
|
Log Message: ----------- Corrected typo in string answer evaluators (affecting blank answers mainly) Removed FIXME note from PGnumericevaluators.pl Modified Files: -------------- pg/macros: PGnumericevaluators.pl PGstringevaluators.pl Revision Data ------------- Index: PGnumericevaluators.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/PGnumericevaluators.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -Lmacros/PGnumericevaluators.pl -Lmacros/PGnumericevaluators.pl -u -r1.2 -r1.3 --- macros/PGnumericevaluators.pl +++ macros/PGnumericevaluators.pl @@ -555,7 +555,7 @@ sub std_num_cmp_list { my ( $relPercentTol, $format, @answerList) = @_; - #FIXME? errors if not defined? + my %options = ( 'relTol' => $relPercentTol, 'format' => $format, ); Index: PGstringevaluators.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/PGstringevaluators.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -Lmacros/PGstringevaluators.pl -Lmacros/PGstringevaluators.pl -u -r1.1 -r1.2 --- macros/PGstringevaluators.pl +++ macros/PGstringevaluators.pl @@ -552,7 +552,7 @@ ); # Remove blank prefilter if the correct answer is blank - $answer_evaluator->install_pre_filter('erase') if $answer_evaluator->{correct_ans} eq ''; + $answer_evaluator->install_pre_filter('erase') if $answer_evaluator->ans_hash->{correct_ans} eq ''; my %known_filters = ( 'remove_whitespace' => \&remove_whitespace, |