Skip to content

Commit b125ace

Browse files
committed
adds tests
1 parent b35155a commit b125ace

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/algorithms/groebner-bases.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
L = eliminate(I,2)
2626
@test L == H
2727
@test I.gb[2] == H
28+
29+
I = Ideal([R(0)])
30+
G = groebner_basis(I)
31+
@test G == [R(0)]
2832
end
2933

3034
@testset "Algorithms -> Sig Gröbner bases" begin

test/algorithms/normal-forms.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
I = Ideal([y*x+17-y, x+13*y])
1414
F = [x+13*y, x*y+16]
1515
@test normal_form(F, I) == [0, y + 65520]
16+
I = Ideal([R(0)])
17+
@test normal_form(F, I) == F
1618
end

0 commit comments

Comments
 (0)