Changeset 7af488e in git for libpolys/tests/coeffs_test.h
- Timestamp:
- May 27, 2011, 11:39:02 AM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 9bb545791780a99344a26d6177decb3870f6da87
- Parents:
- 6ccdd3ad26bd7de442ab57e7cc95352fcf0de398
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-27 11:39:02+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:06+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/tests/coeffs_test.h
r6ccdd3a r7af488e 370 370 { 371 371 #ifdef HAVE_RINGS 372 n_coeffType type = n Register( n_Z2m, nr2mInitChar); TS_ASSERT( type == n_Z2m );372 n_coeffType type = n_Z2m; 373 373 TS_ASSERT( Test(type, (void*) 4) ); 374 374 #endif … … 377 377 void test_Zp101() 378 378 { 379 n_coeffType type = n Register( n_Zp, npInitChar); TS_ASSERT( type == n_Zp );379 n_coeffType type = n_Zp; 380 380 TS_ASSERT( Test(type, (void*) 101) ); 381 381 } … … 384 384 { 385 385 #ifdef HAVE_RINGS 386 n_coeffType type = nRegister( n_Z2m, nr2mInitChar); TS_ASSERT( type == n_Z2m );386 n_coeffType type = n_Z2m; 387 387 TS_ASSERT( Test(type, (void*) 8) ); 388 388 #endif 389 389 } 390 390 391 void simple(const n_coeffType _type , cfInitCharProc p)392 { 393 n_coeffType type = nRegister( _type, p);391 void simple(const n_coeffType _type) 392 { 393 n_coeffType type = _type; 394 394 TS_ASSERT( type == _type ); // ? 395 395 TS_ASSERT( Test(type) ); … … 398 398 void test_Q() 399 399 { 400 simple(n_Q , nlInitChar);400 simple(n_Q); 401 401 } 402 402 403 403 void test_R() 404 404 { 405 simple(n_R , nrInitChar);405 simple(n_R); 406 406 } 407 407 … … 410 410 { 411 411 #ifdef HAVE_RINGS 412 simple(n_Z , nrzInitChar); // No need in GMP?412 simple(n_Z); // No need in GMP? 413 413 #endif 414 414 } … … 417 417 void test_GF_toobig() 418 418 { 419 n_coeffType type = nRegister( n_GF, nfInitChar); 420 TS_ASSERT( type == n_GF ); 419 n_coeffType type = n_GF; 421 420 422 421 GFInfo param; … … 436 435 // TODO: what if it was already registered? 437 436 // Q: no way to deRegister a type? 438 n_coeffType type = nRegister( n_GF, nfInitChar); 439 TS_ASSERT( type == n_GF ); 437 n_coeffType type = n_GF; 440 438 441 439 GFInfo param; … … 456 454 #ifdef HAVE_RINGS 457 455 // TODO(Somebody, This will result in memory corruption at Z_2^m later on (due to the succs. setGMPFloatDigits?)...!?); // ???? 458 n_coeffType type = n Register( n_Zn, nrnInitChar); TS_ASSERT( type == n_Zn );456 n_coeffType type = n_Zn; 459 457 460 458 TS_ASSERT( Test(type, (void*) 3) ); … … 465 463 { 466 464 #ifdef HAVE_RINGS 467 n_coeffType type = n Register( n_Z2m, nr2mInitChar); TS_ASSERT( type == n_Z2m );465 n_coeffType type = n_Z2m; 468 466 469 467 TS_ASSERT( Test(type, (void*) 2) ); … … 476 474 { 477 475 setGMPFloatDigits( 10, 5 ); // Init global variables in mpr_complex.cc for gmp_float's... // Note that this seems also to be required for Z_2^m (and Zn?)!???? 478 simple(n_long_R , ngfInitChar);476 simple(n_long_R); 479 477 } 480 478 … … 482 480 { 483 481 setGMPFloatDigits( 10, 5 ); // Init global variables in mpr_complex.cc for gmp_float's... // Note that this seems also to be required for Z_2^m (and Zn?)!???? 484 simple(n_long_C , ngcInitChar);482 simple(n_long_C); 485 483 } 486 484
Note: See TracChangeset
for help on using the changeset viewer.