#include <iostream>
#include <givaro/givinteger.h>
#include <givaro/givintprime.h>
◆ TEST_EQUALITY
#define TEST_EQUALITY |
( |
|
a, |
|
|
|
b |
|
) |
| |
Value:if (!F.areEqual((
a),(
b))) { \
F.write(F.write(std::cerr,
a) <<
"!=",
b) \
<< " failed (at line " << __LINE__ << ")" << std::endl; \
return -1 ; \
}
MG & a
Definition: rmadd.h:143
MG const rmint< K, MG > & b
Definition: rmadd.h:143
◆ TEST_FIELD_SEVERAL_TIMES_SEEDED
#define TEST_FIELD_SEVERAL_TIMES_SEEDED |
( |
|
a, |
|
|
|
seed |
|
) |
| |
Value:
std::cerr << #
a <<
" failed !" << std::endl; \
return -1 ; \
}
int TestField(const Field &F, const uint64_t seed)
Definition: test-fieldarith.h:233
◆ TEST_ONE_FIELD_SEEDED
#define TEST_ONE_FIELD_SEEDED |
( |
|
F, |
|
|
|
a |
|
) |
| |
Value:
std::cerr << #
a <<
" failed !" << std::endl; \
return -1 ; \
} else std::clog << "PASSED." << std::endl;
int TestOneField(const Field &F, const typename Field::Element &first)
Definition: test-fieldarith.h:54
◆ TEST_LAST_PRIME
#define TEST_LAST_PRIME |
( |
|
Field, |
|
|
|
Name |
|
) |
| |
Value:
TEST_FIELD_SEVERAL_TIMES_SEEDED(Name, seed);
Ints previousprime(const Ints &a)
Definition: test-fieldarith.h:250
◆ TEST_SPECIFIC
#define TEST_SPECIFIC |
( |
|
Field, |
|
|
|
Name, |
|
|
|
Modulus... |
|
) |
| |
Value:
TEST_FIELD_SEVERAL_TIMES_SEEDED(Name, seed);
◆ NBITER
◆ invertible()
◆ TestOneField()
◆ TestField()
int TestField |
( |
const Field & |
F, |
|
|
const uint64_t |
seed |
|
) |
| |
◆ previousprime()
Ints previousprime |
( |
const Ints & |
a | ) |
|