From 41f421118e8c72d6ebff79de7e227877027b7610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Fri, 26 Jan 2024 12:02:57 +0100 Subject: [PATCH] Fix AlgClosureFp tests --- test/Rings/AlgClosureFp.jl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/Rings/AlgClosureFp.jl b/test/Rings/AlgClosureFp.jl index 68b9db49bd19..59a2be4b8093 100644 --- a/test/Rings/AlgClosureFp.jl +++ b/test/Rings/AlgClosureFp.jl @@ -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)