X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fexpand_subs.cpp;h=419cea7f2962fd792d4f8b94013fba5e180c3fdc;hp=abaea8f18d86684b3179f3b6b6fba790100804d8;hb=ff50f412bb89eed2c78adffa0f390341753e8792;hpb=a8507b8af1c08d9b27d98d57f95c7ca1a8671e27 diff --git a/check/expand_subs.cpp b/check/expand_subs.cpp index abaea8f1..419cea7f 100644 --- a/check/expand_subs.cpp +++ b/check/expand_subs.cpp @@ -10,9 +10,10 @@ * e = (a0 + a1)^200 * expand e * substitute a0 by -a1 in e - * after which e should return 0 (without expanding). - * - * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany + * after which e should return 0 (without expanding). */ + +/* + * GiNaC Copyright (C) 1999-2000 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 @@ -30,7 +31,11 @@ */ -#include +#include "ginac.h" + +#ifndef NO_NAMESPACE_GINAC +using namespace GiNaC; +#endif // ndef NO_NAMESPACE_GINAC #define VECSIZE 100 @@ -81,11 +86,11 @@ unsigned expand_subs(void) cout << "checking commutative expansion and substitution..." << flush; clog << "---------commutative expansion and substitution:" << endl; - + result += expand_subs1(); result += expand_subs2(); - - if (! result) { + + if (!result) { cout << " passed "; clog << "(no output)" << endl; } else {