Changeset 8d1a1ab in git for standalone.test/test.cc


Ignore:
Timestamp:
May 19, 2011, 12:45:32 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f9dc52052bd777d9c2a6d569c1b44c86be440625
Parents:
76388e9fedc9db5ec948fd81112b68247b15c170
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-19 12:45:32+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:11+01:00
Message:
ADD: standalone test for n_GF (gftables!)
ADD: more search pathes for modules/gftables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • standalone.test/test.cc

    r76388e r8d1a1ab  
    122122}
    123123
     124
     125
    124126int main( int, char *argv[] )
    125127{
     
    129131  feStringAppendResources(0);
    130132  PrintS(StringAppendS("\n"));
    131 
    132   extern BOOLEAN nlInitChar(coeffs, void*);
    133   extern BOOLEAN npInitChar(coeffs, void*);
    134 
    135 
     133  // longrat
     134  extern BOOLEAN nlInitChar(coeffs, void*); // Q
    136135  if( simple(n_Q, nlInitChar) )
    137136    PrintS("Q: Test Passed!");
     
    140139  PrintLn();
    141140
     141  // modulop
     142  extern BOOLEAN npInitChar(coeffs, void*); // Zp
    142143  if( simple(n_Zp, npInitChar, (void*)7) )
    143144    PrintS("Zp: Test Passed!");
     
    145146    PrintS("Zp: Test: Failed!");
    146147  PrintLn();
     148 
     149  // due to coeffs/ffields.h
     150  extern BOOLEAN nfInitChar(coeffs, void*); // GF
     151  struct
     152  {
     153    int GFChar;
     154    int GFDegree;
     155    char* GFPar_name;
     156  } param;
     157
     158  param.GFChar= 5;
     159  param.GFDegree= 2;
     160  param.GFPar_name= (const char*)"Q";
     161
     162  if( simple(n_GF, nfInitChar, (void*)&param) )
     163    PrintS("GF: Test Passed!");
     164  else
     165    PrintS("GF: Test: Failed!");
     166  PrintLn();
     167 
    147168}
Note: See TracChangeset for help on using the changeset viewer.