]> www.ginac.de Git - ginac.git/blobdiff - check/exam_archive.cpp
registered_class_info: use typeid() instead of tinfo_static.
[ginac.git] / check / exam_archive.cpp
index 0fcb6167975944ad696e132ffc36de2cefad94ab..bdf6995542427b2cc2f0eed1c779e4bc8d53f073 100644 (file)
@@ -3,7 +3,7 @@
  *  Here we test GiNaC's archiving system. */
 
 /*
- *  GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -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;