diff --git a/M2/Macaulay2/packages/gfanInterface.m2 b/M2/Macaulay2/packages/gfanInterface.m2 index 7751a03df2..1431951761 100644 --- a/M2/Macaulay2/packages/gfanInterface.m2 +++ b/M2/Macaulay2/packages/gfanInterface.m2 @@ -753,7 +753,7 @@ gfanConvertToNewRing (PolynomialRing) := R1 -> ( --produced by this method. R1Gens := gens R1; numDigits := length (toString (#R1Gens)); - R2 := (coefficientRing R1) (for i in 1..#R1Gens list ( + R2 := (coefficientRing R1) new Array from (for i in 1..#R1Gens list ( value ("x" | demark ("",for i from 1 to numDigits-(length toString i) list "0") | toString i) ) ); R2Gens := gens R2; @@ -4436,6 +4436,15 @@ doc/// assert equalMPL(B,Bprime) /// +-- TEST gfanConvertToNewRing x NCAlgebra (cf. #3600) + TEST /// + debug needsPackage "gfanInterface" + R = QQ[a]; + gfanConvertToNewRing(R); + needsPackage "NCAlgebra"; + gfanConvertToNewRing(R) + /// + -- TEST gfanBuchberger TEST /// equalMPL = (A,B) -> set transpose A === set transpose B