[Kst] kdeextragear-2/kst/tests
George Staikos
staikos at kde.org
Tue Apr 5 05:20:56 CEST 2005
CVS commit by staikos:
fix many of the failures
M +14 -5 testrvector.cpp 1.4
--- kdeextragear-2/kst/tests/testrvector.cpp #1.3:1.4
@@ -77,4 +77,5 @@ void testAscii() {
KstRVectorPtr rvp = new KstRVector(dsp, "1", "RVTestAscii1", 0, -1, 0, false, false);
+ rvp->update(0);
doTest(rvp->isValid());
doTest(rvp->length() == 3);
@@ -83,4 +84,5 @@ void testAscii() {
doTest(rvp->value()[2] == 0.2);
rvp = new KstRVector(dsp, "INDEX", "RVTestAscii2", 0, -1, 0, false, false);
+ rvp->update(0);
doTest(rvp->isValid());
doTest(rvp->length() == 3);
@@ -124,4 +126,5 @@ void testAscii() {
KstRVectorPtr rvp = new KstRVector(dsp, "1", "RVTestAscii1", 0, -1, 0, false, false);
+ rvp->update(0);
doTest(rvp->isValid());
doTest(rvp->length() == 4);
@@ -131,4 +134,5 @@ void testAscii() {
doTest(rvp->value()[3] == 0);
rvp = new KstRVector(dsp, "2", "RVTestAscii2", 0, -1, 0, false, false);
+ rvp->update(0);
doTest(rvp->isValid());
doTest(rvp->length() == 4);
@@ -170,8 +174,10 @@ void testAscii() {
KstRVectorPtr rvp = new KstRVector(dsp, "1", "RVTestAscii1", 0, -1, 0, false, false);
+ rvp->update(0);
doTest(rvp->isValid());
doTest(rvp->length() == 1); // Are we allowed to have vectors of 1?
doTest(rvp->value()[0] == 2);
rvp = new KstRVector(dsp, "2", "RVTestAscii2", 0, -1, 0, false, false);
+ rvp->update(0);
doTest(rvp->isValid());
doTest(rvp->length() == 1);
@@ -218,17 +224,20 @@ void testAscii() {
KstRVectorPtr rvp = new KstRVector(dsp, "1", "RVTestAscii1", 0, -1, 0, false, false);
+ rvp->update(0);
doTest(rvp->isValid());
doTest(rvp->length() == 39000);
rvp = new KstRVector(dsp, "2", "RVTestAscii2", 0, -1, 10, true, false);
+ rvp->update(0);
doTest(rvp->isValid());
- doTest(rvp->length() == 3899);
- doTest(rvp->value()[0] == 110);
- doTest(rvp->value()[1] == 120);
- doTest(rvp->value()[2] == 130);
+ doTest(rvp->length() == 3900);
+ doTest(rvp->value()[0] == 100);
+ doTest(rvp->value()[1] == 101);
+ doTest(rvp->value()[2] == 102);
doTest(rvp->value()[3898] == 39090);
rvp = new KstRVector(dsp, "3", "RVTestAscii2", 0, -1, 10, true, true);
+ rvp->update(0);
doTest(rvp->isValid());
- doTest(rvp->length() == 3899);
+ doTest(rvp->length() == 3900);
doTest(rvp->value()[0] == 1014.5);
doTest(rvp->value()[1] == 1024.5);
More information about the Kst
mailing list