Changeset c7d05f in git


Ignore:
Timestamp:
Dec 17, 2012, 2:03:23 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d51f0bf91c7bbb2089d5060d8822cc20ff8d2429
Parents:
a453bfa3c5e9178b6ada6c3e4b3500f7b3e65b6f
Message:
fix: tests of coeffs due to fixes of Z/*
Location:
libpolys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/test.cc

    ra453bf rc7d05f  
    339339  type = n_Zn;
    340340
    341   if( Test(type, (void*) 3) )
    342     c ++;
    343 
     341  ZnmInfo * Znmparam= new ZnmInfo;
     342  Znmparam->base= (mpz_ptr) omAlloc (sizeof (mpz_t));
     343  mpz_init_set_ui (Znmparam->base, 3);
     344  Znmparam->exp= 1;
     345
     346  if( Test(type, (void*) Znmparam) )
     347    c ++;
     348  delete Znmparam;
    344349#endif
    345350
     
    358363#endif
    359364
    360 
    361 #ifdef HAVE_RINGS
    362   type = n_Zn;
    363 
    364   if( Test(type, (void*) 3) )
    365     c ++;
    366 #endif
    367  
    368365  // polynomial rings needed for: n_algExt, n_transExt !
    369366 
  • libpolys/tests/coeffs_test.h

    ra453bf rc7d05f  
    448448     n_coeffType type = n_Zn;
    449449
    450      TS_ASSERT( Test(type, (void*) 3) );
     450     ZnmInfo * Znmparam= new ZnmInfo;
     451     Znmparam->base= (mpz_ptr) omAlloc (sizeof (mpz_t));
     452     mpz_init_set_ui (Znmparam->base, 3);
     453     Znmparam->exp= 1;
     454
     455     TS_ASSERT( Test(type, (void*) Znmparam) );
     456     delete Znmparam;
    451457#endif
    452458   }
Note: See TracChangeset for help on using the changeset viewer.