[geos-devel] Using static values in Unit Tests

Mateusz Łoskot mateusz at loskot.net
Tue Apr 4 12:29:01 EDT 2006


strk at refractions.net wrote:
> 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.

I understand.
OK, I'll do some tests after I release UT.

Cheers
-- 
Mateusz Łoskot
http://mateusz.loskot.net



More information about the geos-devel mailing list