|
307 | 307 | @test occursin("\n```julia\n", str)
|
308 | 308 | if VERSION > v"1.3.0"
|
309 | 309 | @test occursin("\nk_5(::Type{T<:Number}, x::String) -> String\n", str)
|
310 |
| - @test occursin("\nk_5(\n ::Type{T<:Number},\n x::String,\n func::Union{Nothing, Function}\n) -> String\n", str) |
| 310 | + @test occursin("\nk_5(\n ::Type{T<:Number},\n x::String,\n func::Union{Nothing, Function}\n) -> String\n", str) |
311 | 311 | @test occursin("\n```\n", str)
|
312 | 312 | else
|
313 | 313 | # TODO: remove this test when julia 1.0.0 support is dropped.
|
@@ -343,11 +343,11 @@ end
|
343 | 343 | str = String(take!(buf))
|
344 | 344 | @test occursin("\n```julia\n", str)
|
345 | 345 | if VERSION >= v"1.6" && VERSION < v"1.7"
|
346 |
| - @test occursin("\nk_7(\n x::Union{Nothing, T} where T<:Integer\n) -> Union{Nothing, Integer}\n", str) |
347 |
| - @test occursin("\nk_7(\n x::Union{Nothing, T} where T<:Integer,\n y::Integer\n) -> Union{Nothing, Integer}\n", str) |
| 346 | + @test occursin("\nk_7(\n x::Union{Nothing, T} where T<:Integer\n) -> Union{Nothing, Integer}\n", str) |
| 347 | + @test occursin("\nk_7(\n x::Union{Nothing, T} where T<:Integer,\n y::Integer\n) -> Union{Nothing, Integer}\n", str) |
348 | 348 | else
|
349 |
| - @test occursin("\nk_7(\n x::Union{Nothing, T} where T<:Integer\n) -> Union{Nothing, T} where T<:Integer\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) |
| 349 | + @test occursin("\nk_7(\n x::Union{Nothing, T} where T<:Integer\n) -> Union{Nothing, T} where T<:Integer\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) |
351 | 351 | end
|
352 | 352 | @test occursin("\n```\n", str)
|
353 | 353 |
|
|
0 commit comments