Martin Baker wrote:
> 
> BTW - how do you test and validate this graphics framework code?
> I run this script:
> https://github.com/martinbaker/fricas/blob/master/src/scripts/testscene.input
> This generates a set of files, which I then open using Inkscape or
> Blender as appropriate, I then manually compare the graphics to the
> images here:
> http://www.euclideanspace.com/maths/standards/program/mycode/graph/examples/
> I would like to automate this validation more, I was thinking of doing
> a file comparison with a reference file but this would be sensitive to
> floating point rounding changes, that is it would be sensitive to
> changes outside the SPAD environment, can you think of a better way to
> do the validation?
>

I am doing only minimal validation: basically I am checking that
files compile correctly and check by hand few examples.  It would
be good to have some automatic tests, but floating point rounding
is a problem.  One possibility is to have special routines to
test that data structures in memory are OK (such test routine
should allow some fuzz in comparisons to compensate for floating
point errors) and speparate tests for writing files (where we
could use "simple" numbers, so that results are repeateable).

For bitmapped (2-level) images in the past I counted number
of pixels that differed (in 20000 by 10000 line image numerical
noise typically caused changes to few hundred or less pixels,
more meant I had to investigate the problem).

-- 
                              Waldek Hebisch
[email protected] 

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to