Skip to content

Commit

Permalink
Add test example for degree(::Ideal) (#3417)
Browse files Browse the repository at this point in the history
* Add test example to PR #3412 as requested by @thofma
  • Loading branch information
wdecker authored Feb 24, 2024
1 parent 5f86803 commit 5d19430
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/Rings/mpoly-graded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -559,3 +559,11 @@ end
R, (x, y) = graded_polynomial_ring(QQ, ["x", "y"], [1, -1])
@test is_positively_graded(R) == false
end

@testset "degree" begin
R, (x, y) = polynomial_ring(QQ, ["x", "y"])
I = ideal(R, zero(R))
d = degree(I)
@test d == 1
@test d isa ZZRingElem
end

0 comments on commit 5d19430

Please sign in to comment.