[system] / trunk / pg / lib / Value / AnswerChecker.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/Value/AnswerChecker.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2655 Revision 2656
26sub cmp { 26sub cmp {
27 my $self = shift; 27 my $self = shift;
28 my $ans = new AnswerEvaluator; 28 my $ans = new AnswerEvaluator;
29 $ans->ans_hash( 29 $ans->ans_hash(
30 type => "Value (".$self->class.")", 30 type => "Value (".$self->class.")",
31 correct_ans => $self->string, 31 correct_ans => protectHTML($self->string),
32 correct_value => $self, 32 correct_value => $self,
33 $self->cmp_defaults, 33 $self->cmp_defaults,
34 @_ 34 @_
35 ); 35 );
36 $ans->install_evaluator(sub {$ans = shift; $ans->{correct_value}->cmp_parse($ans)}); 36 $ans->install_evaluator(sub {$ans = shift; $ans->{correct_value}->cmp_parse($ans)});

Legend:
Removed from v.2655  
changed lines
  Added in v.2656

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9