Ilya Zakharevich on Sun, 31 Oct 1999 01:05:16 -0500

 Re: regression test

```On Sat, Oct 30, 1999 at 06:02:43PM -0400, Michael Somos wrote:
> test script, this can also be done with GP/PARI. I wonder if pieces of
> the "regress.cal" could be reused for GP/PARI. After all, pieces like :
>
>         vrfy((3/4)//(-1/4)==-3, '438: (3/4)//(-1/4)==-3');
>         vrfy(7%3==1,            '439: 7%3==1');
>         vrfy(0-.5==-.5,         '440: 0-.5==-.5');
>         vrfy(0^0 == 1,          '441: 0^0 == 1');
>         vrfy(0^1 == 0,          '442: 0^1 == 0');
>         vrfy(1^0 == 1,          '443: 1^0 == 1');
>         vrfy(1^1 == 1,          '444: 1^1 == 1');
>         vrfy(1/(.8+.8i)==.625-.625i,    '445: 1/(.8+.8i)==.625-.625i');
>         vrfy((.6+.8i)*(3.6-4.8i)==6,    '446: (.6+.8i)*(3.6-4.8i)==6');
>         vrfy(-16^-2 == -1/256,  '447: -16^-2 == -1/256');
>         vrfy(-7^2 == -49,       '448: -7^2 == -49');
>         vrfy(-3! == -6,         '449: -3! == -6');
>
> could be automatically translated into equivalent GP/PARI code. Shalom,

Well, I have an opposite direction translator: for test purposes,
Math::Pari Perl module translates PARI test suite to Perl, then runs
it.

Ilya
```

• References: