[geos-devel] Using static values in Unit Tests
strk at refractions.net
strk at refractions.net
Tue Apr 4 11:43:36 EDT 2006
On Tue, Apr 04, 2006 at 04:55:44PM +0200, Mateusz Å?oskot wrote:
> strk at refractions.net wrote:
> > I'd go with a tolerance value, but rather then
> > set it immediately I'll leave it for later, when
> > we detect differences. I'd start with a tolerance of 0.
>
> Ok, but I'm not sure I understand the idea correctly.
> Do you mean to loop starting from tolerance = 0 and check if values are
> equal, if not, tolerance is increased e.g. 0 + 0.001 and results are
> compared again. Loop ends when results comparison = true.
>
> Is this the idea?
The idea is just to use a "global" tolerance value, to try
at keeping it as small as possible. An automated loop could
help finding out the minimum tolerance, but I'm not sure
the complexity makes it worth.
--strk;
More information about the geos-devel
mailing list