Givaro
Defines | Functions
test-ffarith.C File Reference
#include <iostream>
#include <givaro/givzpz64std.h>
#include <givaro/givzpz.h>
#include <givaro/givgfq.h>
#include <givaro/givmontg32.h>
#include <givaro/givgfqext.h>
#include <givaro/givextension.h>

Defines

#define TESTE_EG(a, b)
#define JETESTE(a, s)
#define JEONETESTE(F, a, x)
#define NBITER   50

Functions

template<class Field >
int TestOneField (const Field &F, const int FIRSTINT, const float FIRSTFLOAT)
template<class Field >
int TestField (const Field &F, const int seed)
int main (int argc, char **argv)

Define Documentation

#define TESTE_EG (   a,
 
)
Value:
if (!F.areEqual((a),(b))) {\
    std::cout << F.write(std::cout,a) << "!=" << F.write(std::cout,b) << " failed (at line " <<  __LINE__ << ")" << std::endl; \
    return(-1); \
}
#define JETESTE (   a,
 
)
Value:
if (TestField( (a), int(s)) ) {\
    std::cout << #a << " failed !" << std::endl;\
    return -1 ; \
}
#define JEONETESTE (   F,
  a,
 
)
Value:
if (TestOneField(F,(int)a,(float)x)) {\
    std::cout << #a << " failed !" << std::endl;\
    return -1 ; \
}
#define NBITER   50

Function Documentation

int TestOneField ( const Field F,
const int  FIRSTINT,
const float  FIRSTFLOAT 
)

Warning:
F.init(c_,c); ne marche pas !

int TestField ( const Field F,
const int  seed 
)
int main ( int  argc,
char **  argv 
)