[Kst] kdeextragear-2/kst/tests

George Staikos staikos at kde.org
Thu Nov 25 05:51:10 CET 2004


CVS commit by staikos: 

more error cases


  M +38 -9     testeqparser.cpp   1.18


--- kdeextragear-2/kst/tests/testeqparser.cpp  #1.17:1.18
@@ -312,4 +312,8 @@ int main(int argc, char **argv) {
   testParseFail("[[]");
   testParseFail("[]]");
+  testParseFail("]");
+  testParseFail("[");
+  testParseFail("][");
+  testParseFail("[][");
   testParseFail("foo(, 3)");
   testParseFail("foo(3,)");
@@ -317,13 +321,43 @@ int main(int argc, char **argv) {
   testParseFail("foo([])");
   testParseFail("foo(4, [])");
+  testParseFail("/");
+  testParseFail("/2");
+  testParseFail("2/");
+  testParseFail("2//2");
+  testParseFail("%");
+  testParseFail("%2");
+  testParseFail("2%");
+  testParseFail("2%%2");
+  testParseFail("|");
+  testParseFail("||");
+  testParseFail("|2");
+  testParseFail("2|");
+  testParseFail("||2");
+  testParseFail("2||");
+  testParseFail("2|||2");
+  testParseFail("&");
+  testParseFail("&&");
+  testParseFail("&2");
+  testParseFail("2&");
+  testParseFail("&&2");
+  testParseFail("2&&");
+  testParseFail("2&&&2");
+  testParseFail("*");
   testParseFail("*2");
   testParseFail("2*");
+  testParseFail("2**2");
+  testParseFail("^");
+  testParseFail("^2");
+  testParseFail("2^^2");
+  testParseFail("2^");
+  testParseFail("+");
   testParseFail("+2");
+  testParseFail("2+");
+  testParseFail("2++2");
+  testParseFail("-");
   testParseFail("2-");
+  testParseFail("-2-");
   testParseFail("2!");
-  testParseFail("-");
-  testParseFail("+");
-  testParseFail("/");
-  testParseFail("%");
+  testParseFail("!");
   testParseFail("()");
   testParseFail("2()");
@@ -332,9 +366,4 @@ int main(int argc, char **argv) {
   testParseFail("#");
   testParseFail("$");
-  testParseFail("^");
-  testParseFail("^2");
-  testParseFail("2^");
-  testParseFail("]");
-  testParseFail("[");
   testParseFail(")");
   testParseFail("(");





More information about the Kst mailing list