From: David Gilbert <david.gilbert@ob...> - 2011-10-29 06:03:08
On 28/10/2011 15:12, Martin Höller wrote:
> I found a bug in LogAxis which results in an endless loop. I've filed a bug
> and already fixed the problem in SVN:
> I also wrote a unit test, but I'm not sure this test is optimal. If the
> problem would exist, the test wouldn't finish as the code would hand in an
> endless look. Eventually the test execution would terminate with an
> How should one write a test for a bug like this?
> Any suggestions?
> - martin
It is a good question. I don't have any good suggestion, but it is
better to have the test as-is even if it would result in an end-less
loop in the failure case...at least we'll spot that earlier than without
Thanks also for raising (and fixing!) the bug.