Skip to content

Commit

Permalink
add function test_spoly_hash()
Browse files Browse the repository at this point in the history
  • Loading branch information
heiderich committed Jun 28, 2019
1 parent 754f514 commit 1bb108f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/poly/spoly-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,18 @@ function test_spoly_unique()
println("PASS")
end

function test_spoly_hash()
print("spoly.hash...")

R, (x, y) = PolynomialRing(QQ, ["x", "y"])

@test hash(x) == hash(x+y-y)
@test hash(x,zero(UInt)) == hash(x+y-y,zero(UInt))
@test hash(x,one(UInt)) == hash(x+y-y,one(UInt))

println("PASS")
end

function test_spoly()
test_spoly_constructors()
test_spoly_printing()
Expand All @@ -486,6 +498,7 @@ function test_spoly()
# test_convert_between_MPoly_and_SingularPoly()
test_spoly_differential()
test_spoly_unique()
test_spoly_hash()

println("")
end
Expand Down

0 comments on commit 1bb108f

Please sign in to comment.