]> www.ginac.de Git - ginac.git/commitdiff
* Enable tests N, Q and Q' by default.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Wed, 3 Jul 2002 21:33:20 +0000 (21:33 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Wed, 3 Jul 2002 21:33:20 +0000 (21:33 +0000)
  Rationale: Hubert finally is buying new cool hardware.   ;-)
* New test for expanding x^(x-1)*x.  Complain to JvdH.   ;-)

check/exam_misc.cpp
check/time_lw_N.cpp
check/time_lw_Q.cpp
check/time_lw_Qprime.cpp

index 849dc5adabd666ba1009e68ca18922fe926bc06b..1d1860c3f9325e17aa075befc25973baead4ce98 100644 (file)
@@ -226,6 +226,23 @@ static unsigned exam_subs(void)
        return result;
 }
 
+/* Joris van der Hoeven (he of TeXmacs fame) is a funny guy.  He has his own
+ * ideas what a symbolic system should do.  Let's make sure we won't disappoint
+ * him some day.  Incidentally, this seems to always have worked. */
+static unsigned exam_joris(void)
+{
+       unsigned result = 0;
+       symbol x("x");
+
+       ex e = expand(pow(x, x-1) * x);
+       if (e != pow(x, x)) {
+               clog << "x^(x-1)*x did not expand to x^x.  Please call Joris!" << endl;
+               ++result;
+       }
+
+       return result;
+}
+
 unsigned exam_misc(void)
 {
        unsigned result = 0;
@@ -239,6 +256,7 @@ unsigned exam_misc(void)
        result += exam_sqrfree(); cout << '.' << flush;
        result += exam_operator_semantics(); cout << '.' << flush;
        result += exam_subs(); cout << '.' << flush;
+       result += exam_joris(); cout << '.' << flush;
        
        if (!result) {
                cout << " passed " << endl;
index 596a4686e3e196de17322bb722bce609a636dae5..2c3282d20a3527ce5839c0e45a38398a3e014ad1 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "times.h"
 
-static const bool do_test = false;  // set to true in order to run this beast
+static const bool do_test = true;  // set to true in order to run this beast
 
 static unsigned test(void)
 {
index 9a9365c65d98381d308b8a63f5d133de52c85f92..00c7092614903620bb7750f6e240620b6708d041 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "times.h"
 
-static const bool do_test = false;  // set to true in order to run this beast
+static const bool do_test = true;  // set to true in order to run this beast
 
 static unsigned test(void)
 {
index 72f0e586babd4fe1fda2bda774b3794c101418ac..c6ea6907b632223e709eb35d0b5db069a2fab6f5 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "times.h"
 
-static const bool do_test = false;  // set to true in order to run this beast
+static const bool do_test = true;  // set to true in order to run this beast
 
 static unsigned test(void)
 {