12 cout <<
"Testing equality = 0: " << (bar == 0 ?
"is 0" :
"not 0") << endl;
16 cout <<
"Testing equality = 0: " << (bar == 0 ?
"is 0" :
"not 0") << endl;
18 if ((bar == 0) ==
false)
20 cout <<
"Testing equality = 0: " << (bar == 0 ?
"is 0" :
"not 0") << endl;
35 cout <<
"Testing something that should have a different order failed"
47 cout <<
"Testing equality = 1: " << (bar == 1 ?
"is 1" :
"not 1") << endl;
51 cout <<
"Testing equality = 0: " << (bar == 0 ?
"is 1" :
"not 1") << endl;
53 if ((bar == 1) ==
false)
55 cout <<
"Testing equality = 1: " << (bar == 1 ?
"is 1" :
"not 1") << endl;
68 cout <<
"Testing same BRP for equality failed" << endl;
78 cout <<
"Testing equal BRPs for equality failed" << endl;
86 if ((bar2 != bar) ==
false)
88 cout <<
"Testing different BRPs for equality failed" << endl;
92 cout <<
"Testing different BRPs for equality failed" << endl;
111 BRP bar3 = bar + bar2;
124 cout <<
"Testing addition: " << (bar3 == bar4 ?
"is good" :
"is bad")
135 cout <<
"Addition failed" << endl;
149 cout <<
"Addition failed" << endl;
163 cout <<
"Addition failed" << endl;
177 cout <<
"Addition failed" << endl;
194 BRP barMultiply = bar * bar2;
202 if (barMultiply != bar3)
204 cout <<
"Testing multiplication: "
205 << (barMultiply == bar3 ?
"is good" :
"is bad") << endl;
216 cout <<
"Multiplication not correct. Is " << c << endl;
227 cout <<
"Multiplication not correct. Is " << c << endl;
237 cout <<
"Multiplication not correct. Is " << c << endl;
247 cout <<
"Multiplication not correct. Is " << c << endl;
254 correct =
BRP(222) +
BRP(221) +
BRP(220);
257 cout <<
"Multiplication not correct. Is " << c << endl;
265 cout <<
"Testing isDivisibleBy is bad" << endl;
269 cout <<
"Testing isDivisibleBy is bad" << endl;
271 int barDivide = 14 ^ 8;
274 cout <<
"Testing divide: " << (barDivide == 6 ?
"is good" :
"is bad")
288 cout <<
"Testing LT(): " << (bar.
LT() == 8 ?
"is good" :
"is bad")
297 cout <<
"Testing LT(): " << (bar.
LT() == 8 ?
"is good" :
"is bad")
300 if (
BRP(bar1.
LT()) != bar1)
302 cout <<
"Testing LT(): " << (bar.
LT() == 8 ?
"is good" :
"is bad")
312 cout <<
"error" << endl;
316 cout <<
"error" << endl;
320 cout <<
"error" << endl;
329 cout <<
"error" << endl;
333 cout <<
"error" << endl;
339 cout <<
"error" << endl;
348 cout <<
"error" << endl;
352 cout <<
"error" << endl;
356 cout <<
"error" << endl;
360 cout <<
"error" << endl;
364 cout <<
"error" << endl;
368 cout <<
"error" << endl;
372 cout <<
"error" << endl;
378 cout <<
"Hello Testing Friends!" << endl;
static bool isDivisibleBy(const brMonomial &a, const brMonomial &b)
bool isLeadingReducibleBy(const BRP &other) const
BRP remainder(const BRP &x) const
static bool isRelativelyPrime(const brMonomial &a, const brMonomial &b)
Boolean (F_2-coefficient) polynomial stored as an ordered list of square-free monomials.
static struct enter_factory foo2
static struct enter_factory foo1
void testMultiplication()
void testIsRelativelyPrime()
void testIsLeadingReducibleBy()
std::list< brMonomial > monomials
brMonomial — bit-packed Boolean-ring monomials for the Hinkelmann GB engine.