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

◆ testEquality()

void testEquality ( )

Definition at line 59 of file franzi-brp-test.cpp.

60{
61 monomials foo;
62 foo.push_back(8);
63 foo.push_back(3);
64 foo.push_back(0);
65 BRP bar = BRP(foo);
66 if (bar != bar)
67 {
68 cout << "Testing same BRP for equality failed" << endl;
69 }
70
72 foo1.push_back(8);
73 foo1.push_back(3);
74 foo1.push_back(0);
75 BRP bar1 = BRP(foo1);
76 if (bar1 != bar)
77 {
78 cout << "Testing equal BRPs for equality failed" << endl;
79 }
80
82 foo2.push_back(8);
83 foo2.push_back(3);
84 foo2.push_back(1);
85 BRP bar2 = BRP(foo2);
86 if ((bar2 != bar) == false)
87 {
88 cout << "Testing different BRPs for equality failed" << endl;
89 }
90 if (bar2 == bar)
91 {
92 cout << "Testing different BRPs for equality failed" << endl;
93 }
94}
Boolean (F_2-coefficient) polynomial stored as an ordered list of square-free monomials.
static struct enter_factory foo2
Definition factory.cpp:310
static struct enter_factory foo1
Definition factory.cpp:287
std::list< brMonomial > monomials

References foo1, and foo2.

Referenced by main().