On Tue, May 05, 2009 at 11:58:47AM -0700, Jonathan Leto wrote:
> >> [how to compare floating point numbers in tests]
> >> Check that it's in an acceptable range.
> I heartily agree with this. Math::GSL has thousands of tests like
> this, which is why Math::GSL::Test
> has a number of easy-to-use functions to do this.
>
> I very much recommend that you look at is_similar() in
> Math::GSL::Test, it has implemented at least a
> few wheels that you are destined to want:
>
> is_similar($x,$y;$eps,$similarity_function)
>
> is_similar($x,$y);
> is_similar($x, $y, 1e-7);
I wonder if this is something that could be broken out of Math-GSL and
put into Test::More - or at least released seperately so that people can
use it without Math::GSL's dependencies. Of those, ExtUtils::PkgConfig
is a bit of a showstopper for lots of people.
Added TSCH to the CC list.
--
David Cantrell | Nth greatest programmer in the world
If I could read only one thing it would be the future, in the
entrails of the bastard denying me access to anything else.