diff --git a/test/flint/fq_nmod_poly-test.jl b/test/flint/fq_nmod_poly-test.jl index 9fd1f7bf7..4dae83da0 100644 --- a/test/flint/fq_nmod_poly-test.jl +++ b/test/flint/fq_nmod_poly-test.jl @@ -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