Skip to content

Commit

Permalink
ci: fix doctest failure report (#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma authored Sep 10, 2024
1 parent 25ef213 commit 0738869
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/AlgAss/AbsAlgAss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions src/AlgAss/StructureConstantAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
18 changes: 9 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

0 comments on commit 0738869

Please sign in to comment.