[Kst] kdeextragear-2/kst/tests

George Staikos staikos at kde.org
Mon Nov 22 22:50:23 CET 2004


CVS commit by staikos: 

updated testcases based on discussion


  M +2 -2      COVERAGE   1.2
  M +5 -3      testeqparser.cpp   1.9


--- kdeextragear-2/kst/tests/COVERAGE  #1.1:1.2
@@ -4,9 +4,9 @@
 Test: testeqparser
 Last Run: 11/22/04
-Failures: 8
+Failures: 3
 
 File                    Cov     Notes
 ----------------------------------------------------------------------------
-enodes.cpp              90%     Mostly missed error cases and some plugin
+enodes.cpp              89%     Mostly missed error cases and some plugin
                                 types.
 enodefactory.cpp        100%

--- kdeextragear-2/kst/tests/testeqparser.cpp  #1.8:1.9
@@ -107,4 +107,6 @@ int main(int argc, char **argv) {
         // Base cases
         test("", 1.0, 0.0);  // TODO: Should it pass?  Currently gives parse error
+        test(" ", 1.0, 0.0);  // TODO: Should it pass?  Currently gives parse error
+        test("  ", 1.0, 0.0);  // TODO: Should it pass?  Currently gives parse error
         test("0", 1.0, 0.0);
         test("1.0", 2.0, 1.0);
@@ -246,5 +248,5 @@ int main(int argc, char **argv) {
         test("!2.0", 0.0, 0.0);
         test("!x", INF, 0.0);
-        test("!x", NOPOINT, 1.0); // FAILS
+        test("!x", NOPOINT, 1.0);
         test("!(1 > 2)", 0.0, 1.0);
         test("!1.0 > -1.0", 0.0, 1.0);  // (!1.0) > -1.0
@@ -299,6 +301,6 @@ int main(int argc, char **argv) {
         testParseFail("[]");
         testParseFail("foo(, 3)");
-        testParseFail("foo(3,)"); // FAILS
-        testParseFail("foo(3,,5)"); // FAILS
+        testParseFail("foo(3,)");
+        testParseFail("foo(3,,5)");
         testParseFail("foo([])");
         testParseFail("foo(4, [])");





More information about the Kst mailing list