Skip to content

Commit 256debb

Browse files
committed
tests: add reference files for julia@1.3.1
Some tests only run for older Julia versions, these reference files are thus only generated for the first time when run with an older julia version.
1 parent c6bfa59 commit 256debb

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
```julia
3+
k_6(x::Array{T<:Number,1}) -> Array{T,1} where T<:Number
4+
5+
```
6+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
```julia
3+
h_1(
4+
x::Union{Array{T,3},Array{T,4}}whereT
5+
)->Union{Array{T,3},Array{T,4}}whereT
6+
7+
```
8+

test/reference_outputs/typed_method_signatures_windows_18_and_later.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/tests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,11 @@ ro_path(fn) = joinpath(@__DIR__, "reference_outputs", fn)
206206
:module => M,
207207
)
208208
str = @io2str DSE.format(DSE.TYPEDSIGNATURES, ::IO, doc)
209+
str = replace(str, " " => "")
209210
if Sys.iswindows() && VERSION < v"1.8"
210211
@test_reference ro_path("typed_method_signatures_windows_pre_18.txt") str
211212
else
212-
@test_reference ro_path("typed_method_signatures_windows_18_and_later.txt") str
213+
@test_reference ro_path("typed_method_signatures_not_windows_or_not_pre_18.txt") str
213214
end
214215

215216
doc.data = Dict(

0 commit comments

Comments
 (0)