Skip to content

Commit cf19699

Browse files
committed
make docstring test better
1 parent d498648 commit cf19699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ end
307307
@test occursin("\n```julia\n", str)
308308
if VERSION > v"1.3.0"
309309
@test occursin("\nk_5(::Type{T<:Number}, x::String) -> String\n", str)
310-
@test occursin("\nk_5(::Type{T<:Number}, x::String) -> String\nk_5(\n ::Type{T<:Number}, \n x::String, \n func::Union{Nothing, Function}\n) -> String\n\n", str)
310+
@test occursin("\nk_5(\n ::Type{T<:Number}, \n x::String, \n func::Union{Nothing, Function}\n) -> String\n", str)
311311
@test occursin("\n```\n", str)
312312
else
313313
# TODO: remove this test when julia 1.0.0 support is dropped.
@@ -347,7 +347,7 @@ end
347347
else
348348
@test occursin("\nk_7(x::Union{Nothing, T} where T<:Integer) -> Union{Nothing, Integer}\n", str)
349349
end
350-
@test occursin("\nk_7(x::Union{Nothing, T} where T<:Integer) -> Union{Nothing, T} where T<:Integer\nk_7(\n x::Union{Nothing, T} where T<:Integer, \n y::Integer\n) -> Union{Nothing, T} where T<:Integer\n\n", str)
350+
@test occursin("\nk_7(\n x::Union{Nothing, T} where T<:Integer, \n y::Integer\n) -> Union{Nothing, T} where T<:Integer\n", str)
351351
@test occursin("\n```\n", str)
352352

353353
doc.data = Dict(

0 commit comments

Comments
 (0)