Macaulay2 Engine
Loading...
Searching...
No Matches
◆
TEST()
[7/14]
TEST
(
RingZZ
,
multDivide
)
Definition at line
129
of file
RingZZTest.cpp
.
130
{
131
testRingDivide
(
globalZZ
,
ntrials
);
132
133
// I would prefer for 'divide' to be exact division, with a return value of
134
// false, if not exactly divisible
135
ring_elem
a =
globalZZ
->from_long(5);
136
ring_elem
b =
globalZZ
->from_long(2);
137
EXPECT_THROW(
globalZZ
->divide(a, b),
exc::engine_error
);
138
// ring_elem c = globalZZ->divide(a, b);
139
// EXPECT_ANY_THROW(globalZZ->is_equal(c, globalZZ->from_long(2)));
140
}
ntrials
const int ntrials
Definition
ARingTest.hpp:42
testRingDivide
void testRingDivide(const T *R, int ntrials)
Definition
RingTest.hpp:140
globalZZ
RingZZ * globalZZ
Definition
relem.cpp:13
exc::engine_error
Definition
exceptions.hpp:42
ring_elem
Definition
ringelem.hpp:85
References
globalZZ
,
ntrials
, and
testRingDivide()
.
Macaulay2
e
unit-tests
RingZZTest.cpp
Generated on
for Macaulay2 Engine by
1.15.0