# [Maxima] [Maxima-commits] CVS: maxima/share share_testsuite.mac, NONE, 1.1

Barton Willis willisb at unk.edu
Fri Aug 3 06:10:23 CDT 2007

```The file /tests/README.how-to explains the recent changes to the
way the test suite checks equality. Item 'f' is want you might need
to look at:

(f) Maxima evaluates the input, but only simplifies the expected output.
Thus
a test such as

makelist(sin(k * %pi),k,1,5);
makelist(0,k,1,5)\$

will fail. You'll need to write the test as either

makelist(sin(k * %pi),k,1,5);
''(makelist(0,k,1,5))\$

or

makelist(sin(k * %pi),k,1,5);
[0,0,0,0,0]\$

To get a test to pass,you may need to insert a few parenthesis in the
expected output; for example

-a/2;
-(a/2)\$

Another way to handle such things is to use explicit calls to ratsimp:

ratsimp(-a/2);
''(ratsimp(-a/2))\$

To test a function such as factor, you do not want to apply ratsimp.

Let me know if you have questions.

Barton

-----maxima-bounces at math.utexas.edu wrote: -----

>To: "Robert Dodier" <robert_dodier at users.sourceforge.net>
>From: "Billinghurst, David \(RTATECH\)" <David.Billinghurst at riotinto.com>
>Sent by: maxima-bounces at math.utexas.edu
>Date: 08/03/2007 12:51AM
>cc: maxima at math.utexas.edu
>Subject: Re: [Maxima] [Maxima-commits] CVS: maxima/share
>share_testsuite.mac,   NONE, 1.1
>
>> From: Robert Dodier
>> Sent: Friday, 3 August 2007 15:19
>> To: maxima-commits at lists.sourceforge.net
>> Subject: [Maxima-commits] CVS: maxima/share
>share_testsuite.mac,NONE,1.1
>>
>> Update of /cvsroot/maxima/maxima/share
>>          share_testsuite.mac
>> Log Message:
>> New script to set up testsuite_files so that run_testsuite runs
>> tests in share packages. Initial revision runs all rtest*.mac
>> scripts in share except for all the ones in
>> share/contrib/diffequations/tests/.
>
>I need to work out how to fix the share/contrib/diffequations/
>testsuite.  Some changes in the testsuite infrastructure have
>upset things.  I will have a look over the weekend
>

```