[Kst] extragear/graphics/kst/tests

George Staikos staikos at kde.org
Wed Jul 13 22:40:49 CEST 2005


SVN commit 434370 by staikos:

add testcases for vector indexing and change scalars to have leading and
trailing whitespace purged (a consequence of vector indexing issues)


 M  +12 -1     testlabelparser.cpp  


--- trunk/extragear/graphics/kst/tests/testlabelparser.cpp #434369:434370
@@ -335,10 +335,21 @@
   doTest(c->next == 0L);
   doTest(c->up == 0L);
   doTest(c->down == 0L);
-  doTest(c->text == " a ^label ");
+  doTest(c->text == "a ^label");
   doTest(c->scalar);
   delete parsed;
 
+  parsed = Label::parse("[vector[2]]");
+  doTest(parsed != 0L);
+  c = parsed->chunk;
+  doTest(c->next == 0L);
+  doTest(c->up == 0L);
+  doTest(c->down == 0L);
+  doTest(c->text == "vector");
+  doTest(c->expression == "2");
+  doTest(c->vector);
+  delete parsed;
+
   parsed = Label::parse("[a][b]");
   doTest(parsed != 0L);
   c = parsed->chunk;


More information about the Kst mailing list