Feb. 6, 2008
2:31 a.m.
Hi,
I have a question regarding tests - do some of them actually test for a correctness? It seems to me, that most of them only test, if sfepy runs for the given input and mesh, but we should also test, that the result of the calculation is actually correct. For example when I polish the schrodinger solver, the simple test is to check that all the energies are correct.
For example this one:
tests/test_quadratures.py
Does it test for a correctness? It seems to me, that this code
def test_problemCreation( self ):
from sfe.solvers.generic import solveStationary
problem, vec, data = solveStationary( self.conf )
ok = True
return ok
Always returns "ok", no matter what was returned in vec and data.
Ondrej