Changeset 8d1a1ab in git


Ignore:
Timestamp:
May 19, 2011, 12:45:32 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd25190065115c859833252500a64cfb7b11e3a50')
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
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/resources/feResource.cc

    r76388e r8d1a1ab  
    7979   "%b/LIB;"
    8080   "%b/MOD;"
     81   "%b/../lib/libpolys/MOD;"
    8182   "%r/LIB;"
    8283   "%r/../LIB;"
     
    8485   "%d/../LIB;"
    8586   "%b/gftables;"
     87   "%b/../share/gftables;"
    8688   "%b/../../../factory/gftables;"
    8789   "%b/../../factory/gftables",
  • 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.