Skip to content

Commit 6131efd

Browse files
Martin-Helmerd-torrance
authored andcommitted
Added Msolve RUR Test
1 parent 2f22f3e commit 6131efd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

M2/Macaulay2/packages/Msolve/tests.m2

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,17 @@ TEST ///
105105
assert(eM2 == sub(eMsolve, ring eM2))
106106
///
107107

108+
TEST ///
109+
R=QQ[x,y,z];
110+
I = ideal {(x^3-z)*(x^2-y)};
111+
S = ideal {z-2,y-1};
112+
rur = msolveRUR(I+S);
113+
p = matrix{{1}};
114+
assert(apply(rur#"numerator", n->sub(-n,p)) / sub(rur#"denominator",p)=={1,1,2});
115+
p = matrix{{-1}};
116+
assert(apply(rur#"numerator", n->sub(-n,p)) / sub(rur#"denominator",p)=={-1,1,2});
117+
///
118+
108119
TEST ///
109120
debugLevel=1
110121
R = QQ[x..z,t]

0 commit comments

Comments
 (0)