Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix doctest failure report #1602

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading