Changeset 7c362e in git
- Timestamp:
- Aug 26, 2010, 6:20:54 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- a5cd69539ad1429c09a8881386628bbf8d1fc2fc
- Parents:
- 2e6a0618fb4aec3b476ffa839f58c0bbe38e649c
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-08-26 18:20:54+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:28+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/test.cc
r2e6a06 r7c362e 23 23 24 24 25 #pragma GCC diagnostic ignored "-Wwrite-strings" 26 25 27 bool Test(const coeffs r) 26 28 { 27 number a = n_Init(666 , r);29 number a = n_Init(66666, r); 28 30 29 31 StringSetS("a: "); … … 41 43 if (getCoeffType(r) == n_GF) //some special test for GF 42 44 { 43 number z = nfPar (2, r);44 StringSetS(" z: ");45 number z = nfPar (0, r); // also any integer instead of 0 46 StringSetS("Generator: "); 45 47 n_Test(z,r); n_Write (z,r); 46 48 PrintS(StringAppend("\n")); 49 n_Delete(&z, r); 47 50 } 48 51 … … 52 55 n_Test(aa,r); n_Write(aa, r); 53 56 PrintS(StringAppend("\n")); 54 55 57 56 58 number aa2 = n_Mult(a, two, r); … … 61 63 62 64 number aa1 = n_Mult(two, a, r); 63 64 65 65 66 StringSetS("aa1 = 2 * a: "); … … 282 283 param.GFChar= 5; 283 284 param.GFSize= 25; 284 param.GFPar_name= "Z"; 285 286 param.GFPar_name= (const char*)"q"; 285 287 286 288 if( Test(type, (void*) ¶m) ) 287 289 c ++; 288 290 289 290 291 291 292 TODO(Somebody, floating arithmetics via GMP rely on two global variables (see setGMPFloatDigits). Fix it!); … … 301 302 c ++; 302 303 303 304 type = nRegister( n_GF, nfInitChar); assume( type == n_GF );305 if( Test(type) )306 c ++;307 304 308 305 #ifdef HAVE_RINGS
Note: See TracChangeset
for help on using the changeset viewer.