[Kst] kdeextragear-2/kst/tests
George Staikos
staikos at kde.org
Tue Nov 23 18:09:07 CET 2004
CVS commit by staikos:
more scanner/parser testcases
M +3 -1 testeqparser.cpp 1.11
--- kdeextragear-2/kst/tests/testeqparser.cpp #1.10:1.11
@@ -286,5 +286,5 @@ int main(int argc, char **argv) {
KstVector::generateVector(-1.0, 1.0, 1000, "V5-%+-_!");
test("[V2] - [V1]", 0.0, 1.0);
- test("2*sin([V5-%+-_!])", 0.0, 1.0);
+ test("2*sin([V5-%+-_!])", 0.0, -1.6829419696157930);
// TODO: interpolation, more vector combinations
@@ -302,4 +302,6 @@ int main(int argc, char **argv) {
printf("-- Ignore any ERROR: after this line. --------------------\n");
testParseFail("[]");
+ testParseFail("[[]");
+ testParseFail("[]]");
testParseFail("foo(, 3)");
testParseFail("foo(3,)");
More information about the Kst
mailing list