Subject: [UFL-dev] [HG UFL] Added script to automatically generate unit tests from code

From: [email-masked] (UFL)
Date: Sat, 7 Feb 2009 18:16:50 +0100 (CET)

One or more new changesets pushed to the primary ufl repository.
A short summary of the last three changesets is included below.

changeset:   548:6212bd314cd1c52e6e01ca7d43a4ec6d25a33c52
tag:         tip
user:        "Martin Sandve Alnæs <[email-masked]>"
date:        Sat Feb 07 18:17:34 2009 +0100
files:       doc/manual/chapters/elements.tex test/makemanualtestcase.py test/manualtest.py test/test.py
description:
Added script to automatically generate unit tests from code
snippets in manual. Do this in .tex files:

\begin{code} % TESTME
...
\end{code}

enter test directory and:
  cd test
  python makemanualtestcase.py

this generates manualtest.py which has each TESTME snippet
included as a unit test, and is run by test.py like any
other test.

changeset:   547:a4994a1039266ee12f9a4487f7e7ef102641faa1
user:        "Martin Sandve Alnæs <[email-masked]>"
date:        Fri Feb 06 14:22:13 2009 +0100
files:       sandbox/lhsfail.py ufl/__init__.py ufl/algebra.py ufl/algorithms/__init__.py ufl/algorithms/formtransformations.py ufl/algorithms/transformations.py ufl/constantvalue.py ufl/form.py ufl/formoperators.py
description:
New attempt at lhs(form), rhs(form) and functional(form),
extracting bilinear part, linear part, and functional part
from a form in one unified implementation.
Verified for some basic forms. All tests pass again!

Added possibility to multiply forms by a scalar, in
particular being able to do 0*form is handy a few places.

changeset:   546:812f7026ce4b4041af84259fcd32497201e1ebaf
user:        "Martin Sandve Alnæs <[email-masked]>"
date:        Fri Feb 06 11:07:14 2009 +0100
files:       sandbox/makeclasstree.sh sandbox/printclasstree.py
description:
Improved class tree formatting, much more tidy now.
(Needed to learn a bit graphviz anyway for
later documentation and presentations!)

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/ufl