Skip to content

Commit

Permalink
Make doctests in test suite version dependent
Browse files Browse the repository at this point in the history
Julia 1.6 changes display of 1- and 2-d arrays.
Don't rely on them for doctests.
  • Loading branch information
abhro committed May 25, 2024
1 parent 981273d commit 2f84fee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/doctests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using Documenter
setup = quote
using AstroTime
end
DocMeta.setdocmeta!(AstroTime, :DocTestSetup, setup; recursive = true)
doctest(AstroTime)

if VERSION >= v"1.6.0"
DocMeta.setdocmeta!(AstroTime, :DocTestSetup, setup; recursive=true)
doctest(AstroTime)
end

0 comments on commit 2f84fee

Please sign in to comment.