[Kst] extragear/graphics/kst/tests
George Staikos
staikos at kde.org
Sat Nov 5 01:17:32 CET 2005
SVN commit 477758 by staikos:
add a few testcases (that aren't verified automatically)
M +18 -0 testlabelparser.cpp
--- trunk/extragear/graphics/kst/tests/testlabelparser.cpp #477757:477758
@@ -416,6 +416,24 @@
doTest(c->scalar);
delete parsed;
+ parsed = Label::parse("Ends in a \\");
+ delete parsed;
+
+ parsed = Label::parse("_");
+ delete parsed;
+
+ parsed = Label::parse("A weird { case }");
+ delete parsed;
+
+ parsed = Label::parse("x^y^foo{ case }");
+ delete parsed;
+
+ parsed = Label::parse("x^5\\");
+ delete parsed;
+
+ parsed = Label::parse("}");
+ delete parsed;
+
parsed = Label::parse("\\Sigma^{(x+5)^2}_{5+1} + \\Pi^{\\Sigma^{i-j}_{i+j}}_{x = 0} + 5");
doTest(parsed != 0L);
// more to test...
More information about the Kst
mailing list