Skip to content

Commit fea71d1

Browse files
committed
fix a failed unit-test because of the name migration of IM2*
1 parent 88446c2 commit fea71d1

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

M2/Macaulay2/e/unit-tests/util-polyring-creation.cpp

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@ const Monoid* simpleMonoid(const std::vector<std::string>& names,
6767
// #heft == #gens degreesRing.
6868
// heft of each degree vector for each vector should be > 0, if heft is non-empty.
6969

70-
const Monoid* M = Monoid::create(
71-
monorder,
72-
degRing,
73-
names,
74-
degs,
75-
heft
76-
);
70+
return Monoid::create(
71+
monorder,
72+
degRing,
73+
names,
74+
degs,
75+
heft);
7776
}
7877

7978

@@ -174,15 +173,15 @@ const Matrix* idealFromStrings(const PolynomialRing* R,
174173
const Matrix* computeGB(const Matrix* M)
175174
{
176175
M2_arrayint weights = stdvector_to_M2_arrayint(std::vector<int>{});
177-
Computation* C = IM2_GB_make(M,
178-
false, // collect_syz
179-
0, // n_rows_to_keep
180-
weights,
181-
false, // use_max_degree
182-
0, // max_degree
183-
0, // algorithm (default)
184-
0, // strategy (default)
185-
10); // max_reduction_count (engine default)
176+
Computation* C = rawGBMake(M,
177+
false, // collect_syz
178+
0, // n_rows_to_keep
179+
weights,
180+
false, // use_max_degree
181+
0, // max_degree
182+
0, // algorithm (default)
183+
0, // strategy (default)
184+
10); // max_reduction_count (engine default)
186185
if (C == nullptr) return nullptr;
187186
rawStartComputation(C);
188187
return rawGBGetMatrix(C);

0 commit comments

Comments
 (0)