Skip to content

Commit 0d820a6

Browse files
adds tests
1 parent f862ce3 commit 0d820a6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@testset "dimension" begin
2+
R, (x,y) = polynomial_ring(QQ,["x","y"])
3+
I = Ideal([x^2,x*y])
4+
@test isone(dimension(I))
5+
6+
R, (x,y,z) = polynomial_ring(GF(101),["x","y","z"])
7+
I = Ideal([x+2*y+2*z-1, x^2+2*y^2+2*z^2-x, 2*x*y+2*y*z-y])
8+
@test iszero(dimension(I))
9+
end

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ include("interfaces/nemo.jl")
66
include("algorithms/groebner-bases.jl")
77
include("algorithms/normal-forms.jl")
88
include("algorithms/solvers.jl")
9+
include("algorithms/other-algorithms.jl")
910
include("examples/katsura.jl")
1011
end

0 commit comments

Comments
 (0)