Changeset ae85a3 in git


Ignore:
Timestamp:
Apr 21, 2011, 1:40:35 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
8167afd5e92aaed2ba8a54e3c1566fd86d339aa8
Parents:
59a62bd935a023662ba918abaefcc861c4adbe81
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-21 13:40:35+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:24+01:00
Message:
ADD: executables should use feInitResources
ADD: try using n_CoeffWrite...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/tests/coeffs_test.h

    r59a62bd rae85a3  
     1#include <cxxtest/TestSuite.h>
     2#include <cxxtest/GlobalFixture.h>
    13
    24#include "config.h"
     
    57
    68#include <reporter/reporter.h>
     9#include <resources/feResource.h>
    710
    811#include <coeffs/coeffs.h>
     
    8992    n_Delete(&i, r);   
    9093  }
     94  clog<< "ss: "; PrintSized(ss, r); 
    9195
    9296  ss = n_Neg(ss, r); // ss = -ss
     
    196200  {
    197201    clog << ( "Test: could not get this coeff. domain" );
    198     return false;
     202    return FALSE;
    199203  };
     204
     205  TS_ASSERT_DIFFERS( r->cfCoeffWrite, NULLp );
     206
     207  if( r->cfCoeffWrite != NULL )
     208  {
     209    n_CoeffWrite(r); PrintLn();
     210  }
     211
    200212
    201213  if (getCoeffType(r) == n_GF) //some special test for GF
     
    324336
    325337
     338
     339class GlobalPrintingFixture : public CxxTest::GlobalFixture
     340{
     341  public:
     342    bool setUpWorld() {
     343      clog << endl << ( "<world>" ) << endl;
     344      feInitResources();
     345      return true;
     346    }
     347    bool tearDownWorld() { clog << endl <<( "</world>" )  << endl; return true; }
     348    bool setUp() { clog << endl <<( "<test>" )  << endl; return true; }
     349    bool tearDown() { clog << endl <<( "</test>" )  << endl; return true; }
     350};
     351
     352
     353//
     354// We can rely on this file being included exactly once
     355// and declare this global variable in the header file.
     356//
     357static GlobalPrintingFixture globalPrintingFixture;
     358
     359
    326360class CoeffsTestSuite : public CxxTest::TestSuite
    327361{
Note: See TracChangeset for help on using the changeset viewer.