Changeset 2e6a06 in git


Ignore:
Timestamp:
Aug 26, 2010, 6:03:02 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
7c362e1976f05707294718bf3936097282ed4e31
Parents:
03901613ac5a5b40f44fd7758528af836672e4e2
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-08-26 18:03:02+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:28+01:00
Message:
More tests.
Problem: global variables are needed for long_R/C :(
New TODOs :)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • coeffs/test.cc

    r039016 r2e6a06  
    7070  n_Delete(&a, r);
    7171  n_Delete(&two, r);
     72
     73
     74  a = n_Sub( aa, aa1, r );
     75 
     76  StringSetS("a = aa - aa1: ");
     77  n_Test(a,r); n_Write(a, r);
     78  PrintS(StringAppend("\n"));
     79
     80  if( !n_IsZero(a, r) )
     81    WarnS("ERROR: a != 0 !!!\n");
     82
     83  n_Delete(&a, r);
     84
     85
     86
     87  a = n_Sub( aa, aa2, r );
     88
     89  StringSetS("a = aa - aa2: ");
     90  n_Test(a,r); n_Write(a, r);
     91  PrintS(StringAppend("\n"));
     92
     93  if( !n_IsZero(a, r) )
     94    WarnS("ERROR: a != 0 !!!\n");
     95
     96  n_Delete(&a, r);
     97
     98
     99  a = n_Sub( aa1, aa2, r );
     100
     101  StringSetS("a = aa1 - aa2: ");
     102  n_Test(a,r); n_Write(a, r);
     103  PrintS(StringAppend("\n"));
     104
     105  if( !n_IsZero(a, r) )
     106    WarnS("ERROR: a != 0 !!!\n");
     107
     108  n_Delete(&a, r);
     109
    72110
    73111 
     
    118156#undef CASE
    119157    return o;
    120   };
    121 };
     158  }
     159}
    122160 
    123161
     
    238276
    239277
    240 
    241 
    242   // the following leads to the error: "multiple definition of `fePathSep'"
    243   // TODO: Oleksandr/Martin
    244278   type = nRegister( n_GF, nfInitChar); assume( type == n_GF );
     279
    245280   GFInfo param;
    246281
     
    248283   param.GFSize= 25;
    249284   param.GFPar_name= "Z";
     285
    250286   if( Test(type, (void*) &param) )
    251287     c ++;
    252288 
    253289
    254   // BUG: in n_Equal!
    255   // TODO: Oleksandr/Christian
    256 //   type = nRegister( n_long_R, ngfInitChar); assume( type == n_long_R );
    257 //   if( Test(type) )
    258 //     c ++;
    259 //
    260 //   type = nRegister( n_long_C, ngcInitChar); assume( type == n_long_C );
    261 //   if( Test(type) )
    262 //     c ++;
    263  
    264  
    265 
    266 
    267 
     290 
     291  TODO(Somebody, floating arithmetics via GMP rely on two global variables (see setGMPFloatDigits). Fix it!);
     292 
     293  setGMPFloatDigits( 10, 5 ); // Init global variables in mpr_complex.cc for gmp_float's...
     294     
     295  type = nRegister( n_long_C, ngcInitChar); assume( type == n_long_C );
     296  if( Test(type) )
     297    c ++;
     298
     299  type = nRegister( n_long_R, ngfInitChar); assume( type == n_long_R );
     300  if( Test(type) )
     301    c ++;
     302 
     303
     304  type = nRegister( n_GF, nfInitChar); assume( type == n_GF );
     305  if( Test(type) )
     306    c ++;
     307 
    268308#ifdef HAVE_RINGS
    269309  type = nRegister( n_Zn, nrnInitChar); assume( type == n_Zn );
    270310
    271   // trivial BUG here: the parameter 'm' is ignored now in nrnSetExp!!!
    272   // TODO: Frank
     311  TODO(Frank, this seems to be a trivial BUG: the parameter 'm' is ignored now in nrnSetExp. Please fix someday!!!)
    273312  if( Test(type, (void*) 3) )
    274313    c ++;
Note: See TracChangeset for help on using the changeset viewer.