[Kst] Re: kdeextragear-2/kst/tests

George Staikos staikos at kde.org
Thu Dec 9 21:12:33 CET 2004


On Thursday 09 December 2004 15:11, Barth Netterfield wrote:
> There are two tests which fail, as I expect them to.  I don't know why
> they should pass.  I have indicated this with comments.  George?
> +  // the following test fails:  why should it pass?
>    doTest(h1->xMax() - h1->xMin() >= 2.0);
>    doTest(h1->vMin() == 0.0);
> @@ -112,7 +107,8 @@ void doTests() {
>    doTest(h1->xMax() == 11.0);
>    h1->setXRange(9, 10.999999999);
> +  // the following test fails:  why should it pass?
>    doTest(h1->xMax() - h1->xMin() >= 2.0);
>    h1->setXRange(8, 10);
> -  doTest(h1->xMin() == 9.0);
> +  doTest(h1->xMin() == 8.0);
>    doTest(h1->xMax() == 10.0);
>  }

   Last I checked the minimum range was 2.0...  That's what it was testing for 
- different combinations trying to break that condition.

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/



More information about the Kst mailing list