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

◆ TEST() [3/3]

TEST ( ARingQQFlint ,
display  )

Definition at line 76 of file ARingQQFlintTest.cpp.

77{
79
81 buffer o;
82
84 R.init(a);
85 R.init(b);
86 gen.nextElement(a);
87 gen.nextElement(b);
88 R.divide(a, a, b);
89 R.elem_text_out(o, a, true, false, false);
90 EXPECT_TRUE(strcmp(o.str(), "24/23") == 0);
91 std::cout << "a = ." << o.str() << "." << std::endl;
92
93 EXPECT_EQ(ringName(R), "QQFlint");
94 EXPECT_EQ(R.cardinality(), static_cast<size_t>(-1));
95 EXPECT_EQ(R.characteristic(), 0);
96 R.clear(a);
97}
std::string ringName(const T &R)
void init(ElementType &result) const
void divide(ElementType &result, const ElementType &a, const ElementType &b) const
test doc
static void clear(ElementType &result)
void elem_text_out(buffer &o, const ElementType &a, bool p_one=true, bool p_plus=false, bool p_parens=false) const
size_t cardinality() const
size_t characteristic() const
wrapper for the flint fmpq_t integer representation
char * str()
Definition buffer.hpp:72

References M2::ARingQQFlint::cardinality(), M2::ARingQQFlint::characteristic(), M2::ARingQQFlint::clear(), M2::ARingQQFlint::divide(), M2::ARingQQFlint::elem_text_out(), M2::ARingQQFlint::init(), ARingElementGenerator< RingType >::nextElement(), ringName(), and buffer::str().