[Kst] extragear/graphics/kst/tests

George Staikos staikos at kde.org
Mon Aug 8 20:56:43 CEST 2005


SVN commit 444090 by staikos:

testcases for equations with embedded equations, and equations that use
indexed vectors


 M  +5 -0      testeqparser.cpp  


--- trunk/extragear/graphics/kst/tests/testeqparser.cpp #444089:444090
@@ -332,6 +332,8 @@
   test("[test4]*[test5]", 0.0, NOPOINT);
   test("[sdf]", 0.0, NOPOINT);
 
+  test("[=10+10]", 0.0, 20.0);
+  
   // Vectors
   KstVector::generateVector(0, 1.0, 10, "1");
   KstVector::generateVector(0, 1.0, 10, "V1");
@@ -340,6 +342,9 @@
   KstVector::generateVector(-1.0, 1.0, 1000, "V4");
   KstVector::generateVector(-1.0, 1.0, 1000, "V5-%+-_!");
   test("[V2] - [V1]", 0.0, 1.0);
+  test("[V2[9]]", 0.0, 2.0);
+  test("[V2[5+4]]", 0.0, 2.0);
+  test("[V2[]]", 0.0, 1.0);
   test("2*sin([V5-%+-_!])", 0.0, -1.6829419696157930);
   // TODO: interpolation, more vector combinations
 


More information about the Kst mailing list