[Kst] kdeextragear-2/kst/tests

George Staikos staikos at kde.org
Tue Apr 5 05:29:20 CEST 2005


CVS commit by staikos: 

I believe these are all correct and fix the failures


  M +8 -7      testrvector.cpp   1.5


--- kdeextragear-2/kst/tests/testrvector.cpp  #1.4:1.5
@@ -212,4 +212,5 @@ void testAscii() {
 
     KstDataSourcePtr dsp = KstDataSource::loadSource(tf.name());
+    dsp->update(0);
 
     doTest(dsp);
@@ -232,7 +233,7 @@ void testAscii() {
     doTest(rvp->length() == 3900);
     doTest(rvp->value()[0] == 100);
-    doTest(rvp->value()[1] == 101);
-    doTest(rvp->value()[2] == 102);
-    doTest(rvp->value()[3898] == 39090);
+    doTest(rvp->value()[1] == 110);
+    doTest(rvp->value()[2] == 120);
+    doTest(rvp->value()[3898] == 39080);
 
     rvp = new KstRVector(dsp, "3", "RVTestAscii2", 0, -1, 10, true, true);
@@ -240,8 +241,8 @@ void testAscii() {
     doTest(rvp->isValid());
     doTest(rvp->length() == 3900);
-    doTest(rvp->value()[0] == 1014.5);
-    doTest(rvp->value()[1] == 1024.5);
-    doTest(rvp->value()[2] == 1034.5);
-    doTest(rvp->value()[3898] == 39994.5);
+    doTest(rvp->value()[0] == 1004.5);
+    doTest(rvp->value()[1] == 1014.5);
+    doTest(rvp->value()[2] == 1024.5);
+    doTest(rvp->value()[3898] == 39984.5);
 
     QFile::remove(tf.name());




More information about the Kst mailing list