[Kst] branches/work/kst/portto4/kst/tests

Peter Kümmel syntheticpp at gmx.net
Wed Jan 12 21:13:30 CET 2011


SVN commit 1214067 by kuemmel:

also test for Kst::NOPOINT

 M  +10 -3     testvector.cpp  


--- branches/work/kst/portto4/kst/tests/testvector.cpp #1214066:1214067
@@ -11,20 +11,27 @@
 
 #include "testvector.h"
 
-#include <QtTest>
-
 #include <vector.h>
 #include <datacollection.h>
 #include <objectstore.h>
 
+#include "ksttest.h"
+
 static Kst::ObjectStore _store;
 
+
+
 void TestVector::cleanupTestCase() {
   _store.clear();
 }
 
-void TestVector::testVector() {
+void TestVector::testVector() 
+{
   Kst::VectorPtr v1 = Kst::kst_cast<Kst::Vector>(_store.createObject<Kst::Vector>());
+
+  QCOMPARE(v1->length(), 1);
+  QCOMPARE(v1->value(0), &Kst::NOPOINT);
+
   Q_ASSERT(v1);
   v1->resize(15);
   QCOMPARE(v1->length(), 15);


More information about the Kst mailing list