From 0738869e96cd23dca52fc0d44b41c6a9c74212d3 Mon Sep 17 00:00:00 2001 From: Tommy Hofmann Date: Tue, 10 Sep 2024 20:51:17 +0200 Subject: [PATCH] ci: fix doctest failure report (#1602) --- src/AlgAss/AbsAlgAss.jl | 2 +- src/AlgAss/StructureConstantAlgebra.jl | 8 +++++--- test/runtests.jl | 18 +++++++++--------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/AlgAss/AbsAlgAss.jl b/src/AlgAss/AbsAlgAss.jl index 128a430b1e..9764b52efd 100644 --- a/src/AlgAss/AbsAlgAss.jl +++ b/src/AlgAss/AbsAlgAss.jl @@ -210,7 +210,7 @@ Given a simple $K$-algebra with center $C$, return the $C$-dimension $A$. julia> A = matrix_algebra(QQ, 2); julia> dimension_of_center(A) -4 +1 ``` """ @attr Int function dimension_over_center(A::AbstractAssociativeAlgebra) diff --git a/src/AlgAss/StructureConstantAlgebra.jl b/src/AlgAss/StructureConstantAlgebra.jl index 9af7f8a4cd..73426215af 100644 --- a/src/AlgAss/StructureConstantAlgebra.jl +++ b/src/AlgAss/StructureConstantAlgebra.jl @@ -35,7 +35,7 @@ supplied coordinate vector as the one element of the algebra. ```jldoctest julia> associative_algebra(QQ, reshape([1, 0, 0, 2, 0, 1, 1, 0], (2, 2, 2))) -Associative algebra of dimension 2 over Rational field +Structure constant algebra of dimension 2 over QQ ``` """ function structure_constant_algebra(R::Ring, sctable::Array{<:Any, 3}; one = nothing, @@ -54,8 +54,10 @@ $R[X]/(f)$ as an algebra. # Examples ```jldoctest +julia> Qx, x = QQ["x"]; f = x^2 - 2; + julia> structure_constant_algebra(f) -Associative algebra of dimension 2 over Rational field +Structure constant algebra of dimension 2 over QQ ``` """ structure_constant_algebra(f::PolyRingElem) = StructureConstantAlgebra(f) @@ -154,7 +156,7 @@ $K$-linear map $A \to L$. julia> L, = quadratic_field(2); julia> structure_constant_algebra(L) -(Associative algebra of dimension 2 over Rational field, Map: associative algebra of dimension 2 over QQ -> L) +(Structure constant algebra of dimension 2 over QQ, Map: structure constant algebra -> real quadratic field) ``` """ function structure_constant_algebra(K::SimpleNumField) diff --git a/test/runtests.jl b/test/runtests.jl index 9f9977d109..7aab65340b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -263,6 +263,15 @@ if short_test @info "Running short tests" include(joinpath("..", "system", "precompile.jl")) else + # Run the doctests + if v"1.10-" <= VERSION < v"1.11-" + @info "Running doctests (Julia version is 1.10)" + DocMeta.setdocmeta!(Hecke, :DocTestSetup, :(using Hecke); recursive = true) + doctest(Hecke) + else + @info "Not running doctests (Julia version must be 1.10)" + end + if !isparallel # We are not short k, a = quadratic_field(5) @@ -299,13 +308,4 @@ else # Now we are parallel include("parallel.jl") end - - # Run the doctests - if v"1.10-" <= VERSION < v"1.11-" - @info "Running doctests (Julia version is 1.10)" - DocMeta.setdocmeta!(Hecke, :DocTestSetup, :(using Hecke); recursive = true) - doctest(Hecke) - else - @info "Not running doctests (Julia version must be 1.10)" - end end