[system] / trunk / pg / macros / answerComposition.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/answerComposition.pl

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

Revision 6104 Revision 6105
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader$ 4# $CVSHeader: pg/macros/answerComposition.pl,v 1.8 2009/06/25 23:28:44 gage Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
189 if ($fog == $student{$i}) { 189 if ($fog == $student{$i}) {
190 $ans{$i}->{rh_ans}{ans_message} = 190 $ans{$i}->{rh_ans}{ans_message} =
191 "Your formula my not be the composition itself"; 191 "Your formula my not be the composition itself";
192 $error = 1; next; 192 $error = 1; next;
193 } 193 }
194 if ($student{$i} == $x{$i}) { 194 if (Parser::Formula($x{$i}) == $student{$i}) {
195 $ans{$i}->{rh_ans}{ans_message} = "The identity function is not allowed" 195 $ans{$i}->{rh_ans}{ans_message} = "The identity function is not allowed"
196 unless $isPreview; 196 unless $isPreview;
197 $error = 1; next; 197 $error = 1; next;
198 } 198 }
199 199

Legend:
Removed from v.6104  
changed lines
  Added in v.6105

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9