[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm
www
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 03 Mar 2008 19:14:51 -0000
www Mon Mar 3 14:14:51 2008 EDT
Modified files:
/loncom/homework default_homework.lcpm
Log:
Bug #1159: entering an equation is not INCORRECT
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.124 loncom/homework/default_homework.lcpm:1.125
--- loncom/homework/default_homework.lcpm:1.124 Tue Dec 19 09:24:05 2006
+++ loncom/homework/default_homework.lcpm Mon Mar 3 14:14:51 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
#
-# $Id: default_homework.lcpm,v 1.124 2006/12/19 14:24:05 www Exp $
+# $Id: default_homework.lcpm,v 1.125 2008/03/03 19:14:51 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -217,6 +217,7 @@
my $reterror="";
my $result;
+ if ((($type eq '9') || ($type eq '8')) && ($response=~/\=/)) { return ('BAD_FORMULA','Please submit just an expression, not an equation.'); }
if ($type eq '9') {
$result = &maxima_check(&maxima_cas_formula_fix($response),&maxima_cas_formula_fix($answer),\$reterror);
} else {