Givaro 4.2.1
test-integer.C File Reference

tests integer.h fucntions not tested elsewhere. More...

#include <stdlib.h>
#include "gmp++/gmp++.h"
#include <typeinfo>
#include <iostream>

Macros

#define _GIV_REPET   10
 

Functions

int test_axpy_unit (const Integer &a, const Integer &b, const Integer &x)
 
int test_divmod ()
 
int test_axpy ()
 
int test_mul_unit (const Integer &a, const Integer &b)
 
int test_mul ()
 
template<typename UnsignedBaseType>
int test_cast_unit (const UnsignedBaseType &t, const Integer &a, const Integer &b)
 
template<>
int test_cast_unit (const bool &t, const Integer &a, const Integer &b)
 
int test_cast_unit (const Integer &a, const Integer &b)
 
int test_cast ()
 
int test_subin ()
 
int main (int argc, char **argv)
 

Detailed Description

tests integer.h fucntions not tested elsewhere.

Test
tests integer.h fucntions not tested elsewhere.

Macro Definition Documentation

◆ _GIV_REPET

#define _GIV_REPET   10

Function Documentation

◆ test_axpy_unit()

int test_axpy_unit ( const Integer & a,
const Integer & b,
const Integer & x )

◆ test_divmod()

int test_divmod ( )

◆ test_axpy()

int test_axpy ( )

◆ test_mul_unit()

int test_mul_unit ( const Integer & a,
const Integer & b )

◆ test_mul()

int test_mul ( )

◆ test_cast_unit() [1/3]

template<typename UnsignedBaseType>
int test_cast_unit ( const UnsignedBaseType & t,
const Integer & a,
const Integer & b )

◆ test_cast_unit() [2/3]

template<>
int test_cast_unit ( const bool & t,
const Integer & a,
const Integer & b )

◆ test_cast_unit() [3/3]

int test_cast_unit ( const Integer & a,
const Integer & b )

◆ test_cast()

int test_cast ( )

◆ test_subin()

int test_subin ( )

◆ main()

int main ( int argc,
char ** argv )
Todo
test gcd...