Skip to content

Commit

Permalink
Make doctests version dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
abhro committed May 25, 2024
1 parent 6ef0b1d commit 143af97
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ using ConstructionBase
using Test
using Documenter

@testset "Doctests" begin
DocMeta.setdocmeta!(WCS, :DocTestSetup, :(using WCS); recursive=true)
doctest(WCS)
if VERSION >= v"1.6.0"
@testset "Doctests" begin
DocMeta.setdocmeta!(WCS, :DocTestSetup, :(using WCS); recursive=true)
doctest(WCS)
end
end

wcs = WCSTransform(2;
Expand Down

0 comments on commit 143af97

Please sign in to comment.