correct_ans in hardcopy/new answer evaluators | topic started 8/23/2005; 2:45:39 PM last post 8/23/2005; 2:45:39 PM |
Gavin LaRose - correct_ans in hardcopy/new answer evaluators 8/23/2005; 2:45:39 PM (reads: 281, responses: 0) |
Hi all, I'm messing around with creating an answer evaluator and am having trouble with the correct answer that is showing up in the hardcopy. The evaluator is horribly simplistic, and takes an answer, split()s it and then tests the various parts with different num_cmp() and str_cmp() evaluators. Thus the final result is the ANDed output of the AnswerHashes produced by the num_cmp() and str_cmp() evaluators. Very approximately, this gives something like the following: sub new_cmp {
This works fine when working on-line, but when I generate a hardcopy including the correct answer, the answer 'No correct answer specified' is returned. This appears to be the value of $endres->{correct_ans}, which confuses me, because it shows up fine in the preview of the correct answer on-line. Can someone enlighten me on this? Thanks, Gavin |