39#include <gtest/gtest.h>
73 EXPECT_EQ(R.
cardinality(),
static_cast<size_t>(-1));
void testAdd(const T &R, int ntrials)
void testNegate(const T &R, int ntrials)
void testCoercions(const T &R)
void testAxioms(const T &R, int ntrials)
void testSubtract(const T &R, int ntrials)
void testMultiply(const T &R, int ntrials)
std::string ringName(const T &R)
Shared gtest harness for the ARing*Test.cpp suite.
void getElement< M2::ARingZZ >(const M2::ARingZZ &R, int index, M2::ARingZZ::ElementType &result)
gmp_ZZ getRandomInteger()
M2::ARingZZ — FLINT-backed arbitrary-precision integers with small-value inlining.
void nextElement(typename RingType::ElementType &result)
size_t cardinality() const
size_t characteristic() const
void init(ElementType &result) const
void set_from_long(ElementType &result, long a) const
static void clear(ElementType &result)
void set_from_mpz(ElementType &result, mpz_srcptr a) const
wrapper for the flint fmpz_t integer representation
VALGRIND_MAKE_MEM_DEFINED & result(result)