after running rtest16, how to kill f?



rtest16, line 2003:
(f:make_array(functional, 'factorial, hashed), done);

line 2183:
(postfix("f"), prefix("g"), done);

As far as I see this results in what you get.

I would like to propose, that every test file should kill or clear all
variables it uses. A test should not affect the top level.

Volker

2012/9/25 Barton Willis <willisb at unk.edu>

>  After running just rtest16 (run_testsuite(tests=[rtest16])), both f and
> p are in the values
> list. Oops--how to kill f?
>
> (%i1) f;
> incorrect syntax: F is not a prefix operator
>
> (%i1) kill(f);
> incorrect syntax: F is not a prefix operator
> (%i1) incorrect syntax: Premature termination of input at ;.
>
> (%i1) remarry(f);
> incorrect syntax: F is not a prefix operator
>
> (%i1) :lisp(print $f)
> #S(MGENARRAY AREF NIL ASET NIL TYPE $FUNCTIONAL NULL NIL GENERATOR
>       MFACTORIAL CONTENT #<hash-table 1458fcb0>)
> #S(MGENARRAY AREF NIL ASET NIL TYPE $FUNCTIONAL NULL NIL GENERATOR
>       MFACTORIAL CONTENT #<hash-table 1458fcb0>)
>
>  --Barton
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>