[Kst] Test Failures

George Staikos staikos at kde.org
Wed Jul 30 06:23:03 CEST 2003


On Tuesday 29 July 2003 22:14, George Staikos wrote:
> Here's what I have with test failures so far:
>
> Test 139 failed.  Expected [-1.000000], received [-0.923256].
> Test 140 failed.  Expected [-1.000000], received [-0.995349].
>
> These two are the same thing.  I create a vector [-1,-1] with multiple
> entries.  It seems to create junk.

  Of course I see what the problem is:

   if (x0 == x1) {
      x1 = x0 + 0.1;
   }

   Is this really the best solution?

> Test 169 failed.  Expected [false], received [true].
> Test 170 failed.  Expected [2], received [1].
> Test 172 failed.  Expected [2], received [1].
> Test 174 failed.  Expected [2], received [1].
>
> Resize a vector to have 1 element.  Should vectors be required to be of
> size 2 or more?  I think so, but it allowed me to resize it to 1 element.

  Fixed.

> Test 190 failed.  Expected [0.000000], received
> [16937557182324627611841214317742397199786204606011631766406312731025115994
>8000913472114443127943090938824465818430574772384589524006761832051110164828
>73548810025299145274674725388750178746368.000000]. Test 191 failed. 
> Expected [0.000000], received
> [32745723624477234164618723969342785955523566994190524826610461248106958124
>9502727412370575282733564558350109714171031111122814032152421826285026759862
>39290734548578982017915420672.000000].
>
> These ones are fun.  I resized a vector from 3->5 elements, and elements 4
> and 5 looked like this.

   Basically it's uninitialised memory, but I think it would be a good idea to 
initialise it to 0.  What do you think?
   
-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/



More information about the Kst mailing list