Skip to content

Commit

Permalink
Fix AlgClosureFp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Jan 26, 2024
1 parent 808fce3 commit 41f4211
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/Rings/AlgClosureFp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ end

@testset "Printing for $F" for F in [GF(3, 1), Nemo.Native.GF(3, 1)]
K = algebraic_closure(F)
@test sprint(show, "text/plain", K) == "Algebraic Closure of Finite field of degree 1 over GF(3)"
if F isa FqField
@test sprint(show, "text/plain", K) == "Algebraic Closure of Prime field of characteristic 3"
elseif F isa fqPolyRepField
@test sprint(show, "text/plain", K) == "Algebraic Closure of Finite field of degree 1 over GF(3)"
else
error("unreachable")
end

for x in F
@test sprint(show, "text/plain", K(x)) == sprint(show, "text/plain", x)
Expand Down

0 comments on commit 41f4211

Please sign in to comment.