]> www.ginac.de Git - ginac.git/blobdiff - check/time_antipode.cpp
- renamed configure.in to configure.ac as suggested in the autoconf docs
[ginac.git] / check / time_antipode.cpp
index 2d64beef0afe57a1a79bdff1c899346b65524bba..43d4da493b5d16dc01592aa307a52ace8e00e6c8 100644 (file)
@@ -442,7 +442,7 @@ static const node tree6(unsigned cuts=0)
                        bool(cuts & 16)));
 }
 
-static unsigned test_tree(node (*tree_generator)(unsigned=0))
+static unsigned test_tree(const node (*tree_generator)(unsigned=0))
 {
        const int edges = tree_generator().total_edges();
        const int vertices = edges+1;
@@ -464,8 +464,10 @@ static unsigned test_tree(node (*tree_generator)(unsigned=0))
                return 1;
        } else if (result.ldegree(x)!=-vertices || result.degree(x)!=0) {
                clog << "The antipode was miscalculated\nAntipode==" << result
-                    << "\nshould run from x^(" << -vertices << ") to x^(0) but it runs from x^("
-                    << result.ldegree(x) << ") to x^(" << result.degree(x) << ")" << endl;
+                    << "\nshould run from " << x << "^(" << -vertices << ") to "
+                    << x << "^(0)" << "but it runs from " << x << "^("
+                    << result.ldegree(x) << ")" << "to " << x << "^("
+                    << result.degree(x) << ")" << endl;
                return 1;
        }
        return 0;