From d72305a145a98cb9440cc6e7c73a603454486d5f Mon Sep 17 00:00:00 2001 From: Tianyi Pu <912396513@qq.com> Date: Tue, 7 Nov 2023 15:31:23 +0000 Subject: [PATCH] try to fix --- src/Utils.jl | 12 ++++++------ test/runtests.jl | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Utils.jl b/src/Utils.jl index a5a9b3b..2f32ea7 100644 --- a/src/Utils.jl +++ b/src/Utils.jl @@ -1,5 +1,11 @@ import Base: front export seealso + +docref(s) = "[`$(string(s))`](@ref)" + +langenum(s) = s +langenum(s, t) = s * " and " * t +langenum(s, t...) = s * ", " *langenum(t...) """ seealso(s...) @@ -17,9 +23,3 @@ julia> seealso(sin, cos, tan) ``` """ seealso(s...) = "See also " * langenum(map(docref, s)...) * "." - -docref(s) = "[`$(string(s))`](@ref)" - -langenum(s) = s -langenum(s, t) = s * " and " * t -langenum(s, t...) = s * ", " *langenum(t...) \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index d39033b..a18cf08 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -31,6 +31,6 @@ end @test endswith(AbstractArray, Array) end -@testset "# https://github.com/JuliaLang/julia/pull/48894" begin +@testset "https://github.com/JuliaLang/julia/pull/48894" begin @test AbstractRange{Float64}(1:10) ≡ AbstractVector{Float64}(1:10) ≡ AbstractArray{Float64}(1:10) ≡ 1.0:10 end \ No newline at end of file