registered_class_info: use typeid() instead of tinfo_static.
[ginac.git] / check / exam_archive.cpp
index 97962d7a637bc8cd34b4ab7381f1b16b07a8e536..bdf6995542427b2cc2f0eed1c779e4bc8d53f073 100644 (file)
@@ -65,7 +65,8 @@ unsigned exam_archive()
        }
        f = ar.unarchive_ex(lst(x, y, mu, dim), "expr 1");
 
-       if (!f.is_equal(e)) {
+       ex difference = (f - e).expand();
+       if (!difference.is_zero()) {
                clog << "archiving/unarchiving " << e << endl
                     << "erroneously returned " << f << endl;
                ++result;