Log Message:
-----------
Backporting changes from HEAD to rel-2-4-dev
Modified Files:
--------------
pg/lib/Value:
AnswerChecker.pm
pg/macros:
PG.pl
PGstandard.pl
Revision Data
-------------
Index: AnswerChecker.pm
===================================================================
RCS file: /webwork/cvs/system/pg/lib/Value/AnswerChecker.pm,v
retrieving revision 1.109
retrieving revision 1.110
diff -Llib/Value/AnswerChecker.pm -Llib/Value/AnswerChecker.pm -u -r1.109 -r1.110
--- lib/Value/AnswerChecker.pm
+++ lib/Value/AnswerChecker.pm
@@ -1,3 +1,4 @@
+
=head1 DESCRIPTION
#############################################################
@@ -25,10 +26,19 @@
#
$Value::defaultContext->{cmpDefaults} = {};
+=head5 $mathObject->cmp_defaults()
+
+# Internal use.
+# Set default flags for the answer checker in this object
+# showTypeWarnings => 1
+# showEqualErrors => 1
+# ignoreStrings => 1
+# studentsMustReduceUnions => 1
+# show UnionReduceWarnings => 1
+#
+
+=cut
-#
-# Default flags for the answer checkers
-#
sub cmp_defaults {(
showTypeWarnings => 1,
showEqualErrors => 1,
@@ -37,9 +47,11 @@
showUnionReduceWarnings => 1,
)}
+
#
# Special Context flags to be set for the student answer
#
+
sub cmp_contextFlags {
my $self = shift; my $ans = shift;
return (
@@ -62,6 +74,7 @@
#
# Create an answer checker for the given type of object
#
+
sub cmp {
my $self = shift;
my $ans = new AnswerEvaluator;
Index: PG.pl
===================================================================
RCS file: /webwork/cvs/system/pg/macros/PG.pl,v
retrieving revision 1.32
retrieving revision 1.33
diff -Lmacros/PG.pl -Lmacros/PG.pl -u -r1.32 -r1.33
--- macros/PG.pl
+++ macros/PG.pl
@@ -390,8 +390,8 @@
When PG problems are evaluated, the result of evaluating the entire problem is
interpreted as the return value of ENDDOCUMENT(). Therefore, ENDDOCUMENT() must
-the last executable statement of every problem. It can only appear once. It
-returns an list consisting of:
+be the last executable statement of every problem. It can only appear once. It
+returns a list consisting of:
=over
Index: PGstandard.pl
===================================================================
RCS file: /webwork/cvs/system/pg/macros/PGstandard.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lmacros/PGstandard.pl -Lmacros/PGstandard.pl -u -r1.2 -r1.3
--- macros/PGstandard.pl
+++ macros/PGstandard.pl
@@ -1,3 +1,4 @@
+
=head1 NAME
PGstandard.pl - Load standard PG macro packages.
|