STACK: AlgEquiv answer test fails

STACK: AlgEquiv answer test fails

by Nicolas Régnier -
Number of replies: 2

Hi,

I'm trying to use STACK 2014111200 with Maxima 5.31.1 and Moodle 2.7.1+. But it appears that the AlgEquiv answer test never validates student responses.


The healthcheck script returns good results (except for LISP):

OK CAS returned data as expected. You have a live connection to the CAS.
FAILED Unable to determine LISP version, so Maxima image not created automatically.
OK Correct and expected STACK-Maxima library version being used (2014100900).
CAS results are being cached in the database.


But the answer-tests script returns a lot of errors for AlgEquiv ("Not all tests passed!" is written in red at the end of the page). The answer notes are all the same:

CASError: If 3 arguments are given to MAKELIST, the 3rd argument should evaluate to a list:0 

For example, the predicate test "integerp(3)" (which should return true) fails with this error.


It seems that the other answer tests (SubstEquiv, CasEqual, ...) passed ("All tests passed!" written in green at the end of the pages).

Any help would be highly appreciated!

Nicolas

Average of ratings: -
In reply to Nicolas Régnier

Re: STACK: AlgEquiv answer test fails

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Nicolas,

This is odd.  If you run the answer test testing script for the AlgEquiv test what happens?  Is this failing for all inputs, or just for one or two?

Chris

In reply to Christopher Sangwin

Re: STACK: AlgEquiv answer test fails

by Nicolas Régnier -

Thanks for your interest.

Many tests fail for AlgEquiv... The page is probably too long to be reproduced, but here is an extract for the "predicates" part:


Passed?

Student response Teacher answer CAS errors Raw mark Expected mark Feedback Answer note

Fail

integerp(3)

true

TEST_FAILED

0

1

The answer test failed to execute correctly: please alert your teacher. If 3 arguments are given to MAKELIST, the 3rd argument should evaluate to a list:0

CASError: If 3 arguments are given to MAKELIST, the 3rd argument should evaluate to a list:0

Fail

integerp(3.1)

true

TEST_FAILED

0

0

The answer test failed to execute correctly: please alert your teacher. If 3 arguments are given to MAKELIST, the 3rd argument should evaluate to a list:0

CASError: If 3 arguments are given to MAKELIST, the 3rd argument should evaluate to a list:0


Nicolas