Skip to content

Commit

Permalink
Disable failing test on old Julia releases (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Jun 7, 2019
1 parent 5694d14 commit 0ed7a91
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ julia:
- 0.7
- 1.0
- 1.1
- 1.2
- nightly

matrix:
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ environment:
matrix:
- julia_version: 0.7
- julia_version: 1.0
- julia_version: 1.1
- julia_version: 1.2
- julia_version: nightly

platform:
Expand Down
28 changes: 21 additions & 7 deletions test/13_arraycommon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -812,19 +812,33 @@ end
y = CategoricalVector{Int}(undef, 0)
z1 = CategoricalVector{Float64}([1.0])
z2 = CategoricalVector{Int}([1])
@inferred vcat(x, y)
if VERSION > v"1.2.0-DEV"
@inferred vcat(x, y)
end
@test vcat(x, y) isa CategoricalVector{Any}
@inferred vcat(x, z1)
if VERSION > v"1.2.0-DEV"
@inferred vcat(x, z1)
end
@test vcat(x, z1) isa CategoricalVector{Any}
@inferred vcat(y, z1)
if VERSION > v"1.2.0-DEV"
@inferred vcat(y, z1)
end
@test vcat(y, z1) isa CategoricalVector{Float64}
@inferred vcat(x, x)
if VERSION > v"1.2.0-DEV"
@inferred vcat(x, x)
end
@test vcat(x, x) isa CategoricalVector{String}
@inferred vcat(y, y)
if VERSION > v"1.2.0-DEV"
@inferred vcat(y, y)
end
@test vcat(y, y) isa CategoricalVector{Int}
@inferred vcat(z1, z1)
if VERSION > v"1.2.0-DEV"
@inferred vcat(z1, z1)
end
@test vcat(z1, z1) isa CategoricalVector{Float64}
@inferred vcat(z1, z2)
if VERSION > v"1.2.0-DEV"
@inferred vcat(z1, z2)
end
@test vcat(z1, z2) isa CategoricalVector{Float64}
end

Expand Down

0 comments on commit 0ed7a91

Please sign in to comment.