Skip to content

Commit 163d80f

Browse files
committed
adds issue #54 as interface test, adjusts other tests correspondingly
1 parent f1d8f72 commit 163d80f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/interfaces/nemo.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
@testset "Interfaces -> Nemo" begin
22
R, (x,y,z) = polynomial_ring(QQ,["x","y","z"], internal_ordering=:degrevlex)
33
F = [x^2+1-3, x*y-z, x*z^2-3*y^2]
4-
cmp = (Int32[2, 2, 2], BigInt[1, 1, -2, 1, 1, 1, -1, 1, 1, 1, -3, 1], Int32[2, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 2, 0, 2, 0])
4+
cmp = (Int32[2, 2, 2], BigInt[1, 1, -2, 1, 1, 1, -1, 1, 1, 1, -3, 1], Int32[2, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 2, 0, 2, 0], 3)
55
@test AlgebraicSolving._convert_to_msolve(F) == cmp
6+
# issue #54
7+
R, (x1, x2) = polynomial_ring(GF(17), ["x1", "x2"])
8+
I = Ideal([x1, R(0)])
9+
cmp = (Int32[1], BigInt[1], Int32[1, 0], 1)
10+
@test AlgebraicSolving._convert_to_msolve(I.gens) == cmp
611
for _GF in [GF, AlgebraicSolving.Nemo.Native.GF]
712
R, (x,y,z) = polynomial_ring(_GF(2147483659),["x","y","z"], internal_ordering=:degrevlex)
813
F = [x^2+1-3, x*y-z, x*z^2-3*y^2]
@@ -11,6 +16,6 @@
1116
R, (x,y,z) = polynomial_ring(_GF(101),["x","y","z"], internal_ordering=:degrevlex)
1217
F = [x^2+1-3, x*y-z, x*z^2-3*y^2]
1318
res = AlgebraicSolving._convert_to_msolve(F)
14-
@test AlgebraicSolving._convert_finite_field_array_to_abstract_algebra(Int32(3), res..., R) == F
19+
@test AlgebraicSolving._convert_finite_field_array_to_abstract_algebra(Int32(3), res[1], res[2], res[3], R) == F
1520
end
1621
end

0 commit comments

Comments
 (0)