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

List:       kde-commits
Subject:    kdeextragear-2/kst/tests
From:       George Staikos <staikos () kde ! org>
Date:       2004-11-22 21:50:23
Message-ID: 20041122215023.5F07F17271 () office ! kde ! org
[Download RAW message or body]

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, [])");


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

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