[Kst] kdeextragear-2/kst/tests

George Staikos staikos at kde.org
Wed Nov 24 23:40:29 CET 2004


CVS commit by staikos: 

bring the value closer to 0 so that they always pass properly


  M +3 -3      testeqparser.cpp   1.12


--- kdeextragear-2/kst/tests/testeqparser.cpp  #1.11:1.12
@@ -161,7 +161,7 @@ int main(int argc, char **argv) {
         test("cos(3.14159265358979323)", 0.0, -1.0);
         test("cos(3.14159265358979323/2.00000000000000000000000000)", 0.0, 0.0);
-        test("sec(x) == 1/cos(x)", 4.2332744, 1.0);
-        test("csc(x) == 1/sin(x)", 4.2332744, 1.0);
-        test("cot(x) == 1/tan(x)", 4.2332744, 1.0);
+        test("sec(x) == 1/cos(x)", 0.2332744, 1.0);
+        test("csc(x) == 1/sin(x)", 0.2332744, 1.0);
+        test("cot(x) == 1/tan(x)", 0.2332744, 1.0);
 
         test("abs(0.0)", 0.0, 0.0);





More information about the Kst mailing list