Daily bugfix in the polynomial factorization (code didn't catch polynomial "x"
[ginac.git] / check / exam_factor.cpp
index bf1751a572c02e7bf1cb13e0cad5d12514bbb78c..7e156487bc10f16e1dad4a3fdef4572ad2786907 100644 (file)
@@ -83,12 +83,17 @@ static unsigned exam_factor1()
        result += check_factor(e);
 
        e = ex("x*(2+x^2)*(1+x+x^3+x^2+x^6+x^5+x^4)*(1+x)^2*(1-x+x^2)^2*(-1+x)", syms);
-
        result += check_factor(e);
 
        e = ex("(x+4+x^2-x^3+43*x^4)*(x+1-x^2-3*x^3+4*x^4)", syms);
        result += check_factor(e);
 
+       e = ex("-x^2*(x-1)*(1+x^2)", syms);
+       result += check_factor(e);
+
+       e = x;
+       result += check_factor(e);
+
        return result;
 }