[Kst] kdeextragear-2/kst/tests
George Staikos
staikos at kde.org
Mon Nov 22 22:20:45 CET 2004
CVS commit by staikos:
reflect decisions, and fix a testcase
M +3 -5 testeqparser.cpp 1.8
--- kdeextragear-2/kst/tests/testeqparser.cpp #1.7:1.8
@@ -173,5 +173,5 @@ int main(int argc, char **argv) {
test("cos(acos(x))", 0.3875823288, 0.3875823288, 0.0000000001);
test("acos(cos(x))", 2.3875823288, 2.3875823288, 0.0000000001);
- test("asin(sin(x))", 2.3875823288, 2.3875823288, 0.0000000001); // FAILS
+ test("asin(sin(x))", 0.7540103248, 0.7540103248, 0.0000000001);
test("sin(asin(x))", 0.3875823288, 0.3875823288, 0.0000000001);
test("tan(atan(x))", 2.3875823288, 2.3875823288, 0.0000000001);
@@ -259,8 +259,6 @@ int main(int argc, char **argv) {
test("257|0", 0.0, 257.0);
test("0|257", 0.0, 257.0);
-
- // Hmmm?
- test("-1|257", 0.0, 257.0); // TODO: What should be correct?
- test("257|-1", 0.0, 257.0); // TODO: What should be correct?
+ test("-1|257", 0.0, -1);
+ test("257|-1", 0.0, -1);
// Scalars
More information about the Kst
mailing list