X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fexam_misc.cpp;h=d703a93ada5eca54a7fe1966544d1ae80d2276f3;hp=6e047a50c3db2a18fe5665c5d7b820abce4a71c9;hb=6399332bf75937cf57b5352884680897b517f4ba;hpb=ae3044935ddf13dd325f6e11770357b99bbe6095 diff --git a/check/exam_misc.cpp b/check/exam_misc.cpp index 6e047a50..d703a93a 100644 --- a/check/exam_misc.cpp +++ b/check/exam_misc.cpp @@ -3,7 +3,7 @@ */ /* - * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2001 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 @@ -27,20 +27,17 @@ static unsigned exam_expand_subs(void) { unsigned result = 0; - symbol a1("a1"); symbol a[VECSIZE]; ex e, aux; - a[1] = a1; - for (unsigned i=0; i(selfprobe)) { + clog << "ex (of numeric) after self-assignment became " << selfprobe << endl; + ++result; + } + + return result; +} + unsigned exam_misc(void) { unsigned result = 0; @@ -81,6 +208,9 @@ unsigned exam_misc(void) result += exam_expand_subs(); cout << '.' << flush; result += exam_expand_subs2(); cout << '.' << flush; + result += exam_expand_power(); cout << '.' << flush; + result += exam_sqrfree(); cout << '.' << flush; + result += exam_operator_semantics(); cout << '.' << flush; if (!result) { cout << " passed " << endl;