[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kst/portto4/kst/tests
From:       Peter Kümmel <syntheticpp () gmx ! net>
Date:       2011-01-12 20:13:30
Message-ID: 20110112201330.B0601AC8B3 () svn ! kde ! org
[Download RAW message or body]

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);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic