Macaulay2 Engine
Loading...
Searching...
No Matches

◆ TEST() [2/3]

TEST ( ARingQQGMP ,
create  )

Definition at line 57 of file ARingQQGmpTest.cpp.

58{
60
62 buffer o;
63
65 R.init(a);
66 gen.nextElement(a);
67
68 EXPECT_EQ(ringName(R), "QQGMP");
69 EXPECT_EQ(R.cardinality(), static_cast<size_t>(-1));
70 EXPECT_EQ(R.characteristic(), 0);
71 R.clear(a);
72}
std::string ringName(const T &R)
size_t cardinality() const
size_t characteristic() const
static void clear(ElementType &result)
__mpq_struct ElementType
void init(ElementType &result) const
wrapper for the gmp mpq_t integer representation

References M2::ARingQQGMP::cardinality(), M2::ARingQQGMP::characteristic(), M2::ARingQQGMP::clear(), M2::ARingQQGMP::init(), ARingElementGenerator< RingType >::nextElement(), and ringName().