Skip to content

Commit

Permalink
Test setcoeff!
Browse files Browse the repository at this point in the history
  • Loading branch information
joschmitt committed Sep 18, 2024
1 parent 61365ef commit f005b15
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/flint/fq_nmod_poly-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -580,3 +580,11 @@ end

@test_throws ErrorException x+a
end

@testset "setcoeff!" begin
F = Native.GF(3, 2)
Fx, x = F["x"]
f = x^2 + x + 1
setcoeff!(f, 1, ZZ(2))
@test f == x^2 + 2*x + 1
end

0 comments on commit f005b15

Please sign in to comment.