Changeset b27c052 in git for libpolys/tests/coeffs_test.h


Ignore:
Timestamp:
Apr 27, 2011, 3:09:38 AM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
f70f641abd84405ed069738ba8c3597d64be24dc
Parents:
6c084af83f830337d6cc5d88e05a66c74d9350f8
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-27 03:09:38+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:29+01:00
Message:
ADD: first poly-tests (Sum Up integers 0..N)
ADD: GlobalFixup made common and is able to redirect clog
FIX: related minor fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/tests/coeffs_test.h

    r6c084af rb27c052  
    1 #include <cxxtest/TestSuite.h>
    2 #include <cxxtest/GlobalFixture.h>
    3 
    41#include "config.h"
    52#include <misc/auxiliary.h>
    63#include <omalloc/omalloc.h>
     4
    75
    86#include <reporter/reporter.h>
     
    6260 
    6361    clog<< "N*(N+1)/2: "; PrintSized(res, r);
     62
     63
    6464    number d = n_Sub(res, sum1, r);
    65    
    6665    TS_ASSERT( n_IsZeroDivisor(d, r) );
     66    n_Delete(&d, r);
    6767   
    6868    if( n_GetChar(r) == 0 )
     
    336336}
    337337
    338 
    339 
    340 class GlobalPrintingFixture : public CxxTest::GlobalFixture
    341 {
    342   public:
    343     bool setUpWorld() {
    344       clog << endl << ( "<world>" ) << endl;
    345       feInitResources(argv0);
    346       return true;
    347     }
    348     bool tearDownWorld() { clog << endl <<( "</world>" )  << endl; return true; }
    349     bool setUp() { clog << endl <<( "<test>" )  << endl; return true; }
    350     bool tearDown() { clog << endl <<( "</test>" )  << endl; return true; }
    351 };
    352 
    353 
    354 //
    355338// We can rely on this file being included exactly once
    356339// and declare this global variable in the header file.
Note: See TracChangeset for help on using the changeset viewer.