Open dlglin opened 3 years ago
The issue about a list of vectors being turned into a matrix is probably something @dpvc can help us examine and determine whether that behavior can be fixed without breaking something else.
The error message looks like something related to WWSafe
and a failure to be able to use Encode
fully inside a safe compartment. See https://github.com/openwebwork/webwork2/issues/982 . Parts of pg do not use Encode
and instead use alternate UTF-8 support approaches due to problems getting Encode
to work inside WWSafe
. Upgrading to depend on a more modern version of Safe
might help overcome some of these problems. However, even @mgage approaches Safe
/WWSafe
with great caution - so such work has not been a top priority.
Copied from https://webwork.maa.org/moodle/mod/forum/discuss.php?d=6553 When using the cmp method for a Matrix MathObject, if a student enters a list that is not a matrix, then they get an error like the following:
The one exception is if they enter the correct answer without the outer brackets.
A MWE is quoted at the end of this message. For that MWE, if a student enters a valid matrix, it is graded properly. If they enter a matrix with a syntax error, they get an appropriate message. If they enter a list that is not a matrix (e.g. "1,2", or "[1,2],[3,5]"), they get the error quoted above. The one exception is if they enter "[1,2],[3,4]", which is marked correct (and shouldn't be IMO, since that is a list of 1x2 matrices, and not a 2x2 matrix).