[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 3335 Revision 3336
142 if (defined($equal) || !$ans->{showEqualErrors}) {$ans->score(1) if $equal; return} 142 if (defined($equal) || !$ans->{showEqualErrors}) {$ans->score(1) if $equal; return}
143 $self->cmp_error($ans); 143 $self->cmp_error($ans);
144 } else { 144 } else {
145 return if $ans->{ignoreStrings} && (!Value::isValue($student) || $student->type eq 'String'); 145 return if $ans->{ignoreStrings} && (!Value::isValue($student) || $student->type eq 'String');
146 $ans->{ans_message} = $ans->{error_message} = 146 $ans->{ans_message} = $ans->{error_message} =
147 "Your answer isn't ".lc($ans->{cmp_class}).'<BR>'. 147 "Your answer isn't ".lc($ans->{cmp_class})."\n".
148 "(it looks like ".lc($student->showClass).")" 148 "(it looks like ".lc($student->showClass).")"
149 if !$ans->{isPreview} && $ans->{showTypeWarnings} && !$ans->{error_message}; 149 if !$ans->{isPreview} && $ans->{showTypeWarnings} && !$ans->{error_message};
150 } 150 }
151} 151}
152 152

Legend:
Removed from v.3335  
changed lines
  Added in v.3336

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9